From: kiramt Date: Fri, 12 May 2017 07:13:06 +0000 (+0100) Subject: JAL-2491 Tweaks for applet X-Git-Tag: Release_2_10_2~3^2~64^2~12 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d0887be3f86ffd4e0a1d743ab521e5500fe6f1d3;p=jalview.git JAL-2491 Tweaks for applet --- diff --git a/src/jalview/appletgui/AlignmentPanel.java b/src/jalview/appletgui/AlignmentPanel.java index d7f2d5e..842841b 100644 --- a/src/jalview/appletgui/AlignmentPanel.java +++ b/src/jalview/appletgui/AlignmentPanel.java @@ -922,7 +922,7 @@ public class AlignmentPanel extends Panel implements AdjustmentListener, * Scroll to position but centring the target residue. Also set a state flag * to prevent adjustmentValueChanged performing this recursively. */ - setFollowingComplementScroll(true); + // setFollowingComplementScroll(true); // this should be scrollToPosition(sr,verticalOffset, scrollToPosition(sr, seqOffset, true, true); } @@ -1050,7 +1050,7 @@ public class AlignmentPanel extends Panel implements AdjustmentListener, * Flag set while scrolling to follow complementary cDNA/protein scroll. When * true, suppresses invoking the same method recursively. */ - private boolean followingComplementScroll; + private boolean followingComplementScroll = true; private void jbInit() throws Exception { diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index 6425088..673c008 100644 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -106,7 +106,7 @@ public class AlignmentPanel extends GAlignmentPanel implements * Flag set while scrolling to follow complementary cDNA/protein scroll. When * true, suppresses invoking the same method recursively. */ - private boolean dontScrollComplement; + private boolean dontScrollComplement = false; private PropertyChangeListener propertyChangeListener;