JAL-2622 no vertical scroll of wrapped alignment from trackpad / mouse
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 28 Jul 2017 11:12:50 +0000 (13:12 +0200)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 28 Jul 2017 11:12:50 +0000 (13:12 +0200)
button

src/jalview/gui/SeqPanel.java

index 6fbed49..e3cf330 100644 (file)
@@ -1616,7 +1616,7 @@ public class SeqPanel extends JPanel implements MouseListener,
         av.getRanges().scrollRight(true);
 
       }
-      else
+      else if (!av.getWrapAlignment())
       {
         av.getRanges().scrollUp(false);
       }
@@ -1627,7 +1627,7 @@ public class SeqPanel extends JPanel implements MouseListener,
       {
         av.getRanges().scrollRight(false);
       }
-      else
+      else if (!av.getWrapAlignment())
       {
         av.getRanges().scrollUp(true);
       }