Merge remote-tracking branch 'origin/releases/Release_2_10_4_Branch' into merges...
[jalview.git] / src / jalview / gui / IdPanel.java
index a1726f1..a183144 100755 (executable)
@@ -147,7 +147,8 @@ public class IdPanel extends JPanel
   public void mouseWheelMoved(MouseWheelEvent e)
   {
     e.consume();
-    if (e.getWheelRotation() > 0)
+    double wheelRotation = e.getPreciseWheelRotation();
+    if (wheelRotation > 0)
     {
       if (e.isShiftDown())
       {
@@ -158,7 +159,7 @@ public class IdPanel extends JPanel
         av.getRanges().scrollUp(false);
       }
     }
-    else
+    else if (wheelRotation < 0)
     {
       if (e.isShiftDown())
       {