JAL-3071 turn off 'mousedDragging' when stopping scrolling
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 26 Jul 2018 15:42:14 +0000 (16:42 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 26 Jul 2018 15:42:14 +0000 (16:42 +0100)
src/jalview/gui/AnnotationPanel.java
src/jalview/gui/ScalePanel.java

index 822c6d2..1460985 100755 (executable)
@@ -654,6 +654,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
   @Override
   public void mouseEntered(MouseEvent evt)
   {
+    this.mouseDragging = false;
     ap.getScalePanel().mouseEntered(evt);
   }
 
index 6a44d06..8771119 100755 (executable)
@@ -354,6 +354,7 @@ public class ScalePanel extends JPanel
   {
     if (mouseDragging)
     {
+      mouseDragging = false;
       ap.getSeqPanel().stopScrolling();
     }
   }