JAL-2622 don't vertical scroll wrapped alignment id panel from trackpad
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 31 Jul 2017 09:20:15 +0000 (11:20 +0200)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 31 Jul 2017 09:20:15 +0000 (11:20 +0200)
src/jalview/gui/IdPanel.java

index 065f97e..2d24512 100755 (executable)
@@ -154,7 +154,7 @@ public class IdPanel extends JPanel implements MouseListener,
       {
         av.getRanges().scrollRight(true);
       }
-      else
+      else if (!av.getWrapAlignment())
       {
         av.getRanges().scrollUp(false);
       }
@@ -165,7 +165,7 @@ public class IdPanel extends JPanel implements MouseListener,
       {
         av.getRanges().scrollRight(false);
       }
-      else
+      else if (!av.getWrapAlignment())
       {
         av.getRanges().scrollUp(true);
       }