JAL-1291 reinstate fastPaint flag manipulation to make trackPad scrolling smooth
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 24 May 2013 13:14:45 +0000 (14:14 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Fri, 24 May 2013 14:10:56 +0000 (15:10 +0100)
src/jalview/gui/AlignmentPanel.java

index c392b1c..5f20808 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;
   }