From c09d2d06c71e7865bf36df59c9363a8fa698d7cd Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 4 Apr 2006 10:58:29 +0000 Subject: [PATCH] Overview follows cursor movement --- src/jalview/appletgui/AlignmentPanel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 1.7.10.2