JAL-2930 use MouseWheelEvent.getPreciseWheelRotation, not getWheelRotation
[jalview.git] / src / jalview / gui / SeqPanel.java
index 84b85e9..dd8def0 100644 (file)
@@ -1669,7 +1669,8 @@ public class SeqPanel extends JPanel
   public void mouseWheelMoved(MouseWheelEvent e)
   {
     e.consume();
-    if (e.getWheelRotation() > 0)
+    double wheelRotation = e.getPreciseWheelRotation();
+    if (wheelRotation > 0)
     {
       if (e.isShiftDown())
       {
@@ -1681,7 +1682,7 @@ public class SeqPanel extends JPanel
         av.getRanges().scrollUp(false);
       }
     }
-    else
+    else if (wheelRotation < 0)
     {
       if (e.isShiftDown())
       {