From: gmungoc Date: Fri, 24 Apr 2015 14:42:10 +0000 (+0100) Subject: JAL-1691 prevent propagation of scrolling on mouseover follow highlight X-Git-Tag: Jalview_2_9~50 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ec1a819de862ef12fdb650f673a11d160c496331;p=jalview.git JAL-1691 prevent propagation of scrolling on mouseover follow highlight --- diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 6cd5b70..791a371 100644 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -649,6 +649,13 @@ public class SeqPanel extends JPanel implements MouseListener, { if (av.isFollowHighlight()) { + /* + * if scrollToPosition requires scroll adjustment, this flag prevents + * another scroll event being propagated back to the originator + * + * @see AlignmentPanel#adjustmentValueChanged + */ + ap.setFollowingComplementScroll(true); if (ap.scrollToPosition(results, false)) { seqCanvas.revalidate();