From: amwaterhouse Date: Tue, 4 Apr 2006 10:58:29 +0000 (+0000) Subject: Overview follows cursor movement X-Git-Tag: Release_2_08~71 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c09d2d06c71e7865bf36df59c9363a8fa698d7cd;p=jalview.git Overview follows cursor movement --- diff --git a/src/jalview/appletgui/AlignmentPanel.java b/src/jalview/appletgui/AlignmentPanel.java index 30e1d70..b04946f 100755 --- a/src/jalview/appletgui/AlignmentPanel.java +++ b/src/jalview/appletgui/AlignmentPanel.java @@ -313,7 +313,6 @@ public class AlignmentPanel extends Panel implements AdjustmentListener public boolean scrollRight(boolean right) { - if (!right) { if (hscroll.getValue() < 1) @@ -382,6 +381,9 @@ public class AlignmentPanel extends Panel implements AdjustmentListener av.setEndSeq(endSeq); hscroll.setValues(x, hextent, 0, av.getAlignment().getWidth()); vscroll.setValues(y, vextent, 0, av.getAlignment().getHeight()); + + if(overviewPanel!=null) + overviewPanel.setBoxPosition(); } public void adjustmentValueChanged(AdjustmentEvent evt)