JAL-1161 enable fastPaint for nudges from scroll bars or trackpad
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Sun, 19 May 2013 18:28:25 +0000 (19:28 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 24 May 2013 14:10:54 +0000 (15:10 +0100)
src/jalview/gui/AlignmentPanel.java

index f8a2543..b4647ae 100644 (file)
@@ -485,7 +485,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
         return false;
       }
 
-      fastPaint = false;
+      //fastPaint = false;
       vscroll.setValue(vscroll.getValue() - 1);
     }
     else
@@ -495,11 +495,11 @@ public class AlignmentPanel extends GAlignmentPanel implements
         return false;
       }
 
-      fastPaint = false;
+      //fastPaint = false;
       vscroll.setValue(vscroll.getValue() + 1);
     }
 
-    fastPaint = true;
+    //fastPaint = true;
 
     return true;
   }
@@ -521,7 +521,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
         return false;
       }
 
-      fastPaint = false;
+      //fastPaint = false;
       hscroll.setValue(hscroll.getValue() - 1);
     }
     else
@@ -531,11 +531,11 @@ public class AlignmentPanel extends GAlignmentPanel implements
         return false;
       }
 
-      fastPaint = false;
+      //fastPaint = false;
       hscroll.setValue(hscroll.getValue() + 1);
     }
 
-    fastPaint = true;
+    //fastPaint = true;
 
     return true;
   }