Merge branch 'bug/JAL-2491' into develop
authorJim Procter <jprocter@issues.jalview.org>
Sat, 27 May 2017 13:16:18 +0000 (14:16 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sat, 27 May 2017 13:16:18 +0000 (14:16 +0100)
1  2 
src/jalview/appletgui/SeqPanel.java
src/jalview/gui/SeqPanel.java

@@@ -236,11 -235,11 +236,11 @@@ public class SeqPanel extends Panel imp
        HiddenColumns hidden = av.getAlignment().getHiddenColumns();
        while (seqCanvas.cursorY < ranges.getStartSeq())
        {
-         ap.scrollUp(true);
+         ranges.scrollUp(true);
        }
 -      while (seqCanvas.cursorY + 1 > ranges.getEndSeq())
 +      while (seqCanvas.cursorY > ranges.getEndSeq())
        {
-         ap.scrollUp(false);
+         ranges.scrollUp(false);
        }
        while (seqCanvas.cursorX < hidden.adjustForHiddenColumns(ranges
                .getStartRes()))
Simple merge