JAL-2831 Added move viewport event and set up cursor code to use it
[jalview.git] / src / jalview / gui / ScalePanel.java
index 2dc198e..798c833 100755 (executable)
@@ -550,7 +550,8 @@ public class ScalePanel extends JPanel
     // paint, so scroll events are identified as changes to the horizontal or
     // vertical start value.
     if (evt.getPropertyName().equals(ViewportRanges.STARTRES)
-            || evt.getPropertyName().equals(ViewportRanges.STARTRESANDSEQ))
+            || evt.getPropertyName().equals(ViewportRanges.STARTRESANDSEQ)
+            || evt.getPropertyName().equals(ViewportRanges.MOVE_VIEWPORT))
     {
       // scroll event, repaint panel
       repaint();