From 9ba5a485b66e9c5a86b12dedc7b32616f3ef6db8 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 28 Jul 2017 13:12:50 +0200 Subject: [PATCH] JAL-2622 no vertical scroll of wrapped alignment from trackpad / mouse button --- src/jalview/gui/SeqPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 1.7.10.2