isAMac() -> isAMacAndNotJS(), isWindows() -> isWindowsAndNotJS()
[jalview.git] / src / jalview / appletgui / SeqPanel.java
index 291ab02..32f0abb 100644 (file)
@@ -500,9 +500,8 @@ public class SeqPanel extends Panel implements MouseMotionListener,
 
     // For now, ignore the mouseWheel font resizing on Macs
     // As the Button2_mask always seems to be true
-    if ((evt.getModifiers()
-            & InputEvent.BUTTON2_MASK) == InputEvent.BUTTON2_MASK
-            && !Platform.isAMac())
+    
+    if (Platform.isWinMiddleButton(evt))
     {
       mouseWheelPressed = true;
       return;