Merge branch 'Release_2_8_3_Branch' of https://source.jalview.org/git/jalview into...
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 24 Apr 2015 15:06:05 +0000 (16:06 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 24 Apr 2015 15:06:05 +0000 (16:06 +0100)
src/jalview/gui/SeqPanel.java

index 6cd5b70..791a371 100644 (file)
@@ -649,6 +649,13 @@ public class SeqPanel extends JPanel implements MouseListener,
   {
     if (av.isFollowHighlight())
     {
+      /*
+       * if scrollToPosition requires scroll adjustment, this flag prevents
+       * another scroll event being propagated back to the originator
+       * 
+       * @see AlignmentPanel#adjustmentValueChanged
+       */
+      ap.setFollowingComplementScroll(true);
       if (ap.scrollToPosition(results, false))
       {
         seqCanvas.revalidate();