JAL-2491 Started moving other scrolling fns into viewportranges
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index 8dc168a..6997517 100755 (executable)
@@ -175,11 +175,11 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
       e.consume();
       if (e.getWheelRotation() > 0)
       {
-        ap.scrollRight(true);
+        av.getRanges().scrollRight(true);
       }
       else
       {
-        ap.scrollRight(false);
+        av.getRanges().scrollRight(false);
       }
     }
     else