From d0887be3f86ffd4e0a1d743ab521e5500fe6f1d3 Mon Sep 17 00:00:00 2001 From: kiramt Date: Fri, 12 May 2017 08:13:06 +0100 Subject: [PATCH] JAL-2491 Tweaks for applet --- src/jalview/appletgui/AlignmentPanel.java | 4 ++-- src/jalview/gui/AlignmentPanel.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 1.7.10.2