From: gmungoc Date: Fri, 28 Jul 2017 11:12:50 +0000 (+0200) Subject: JAL-2622 no vertical scroll of wrapped alignment from trackpad / mouse X-Git-Tag: Release_2_10_3b1~132^2~34 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9ba5a485b66e9c5a86b12dedc7b32616f3ef6db8;p=jalview.git JAL-2622 no vertical scroll of wrapped alignment from trackpad / mouse button --- diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 6fbed49..e3cf330 100644 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -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); }