From: <ha...@us...> - 2012-10-30 19:52:57
|
Revision: 17697 http://jmol.svn.sourceforge.net/jmol/?rev=17697&view=rev Author: hansonr Date: 2012-10-30 19:52:46 +0000 (Tue, 30 Oct 2012) Log Message: ----------- JSmol mousewheel problem Modified Paths: -------------- trunk/Jmol/src/org/jmol/awtjs2d/Mouse.java Modified: trunk/Jmol/src/org/jmol/awtjs2d/Mouse.java =================================================================== --- trunk/Jmol/src/org/jmol/awtjs2d/Mouse.java 2012-10-29 20:31:55 UTC (rev 17696) +++ trunk/Jmol/src/org/jmol/awtjs2d/Mouse.java 2012-10-30 19:52:46 UTC (rev 17697) @@ -64,7 +64,8 @@ } public boolean handleOldJvm10Event(int id, int x, int y, int modifiers, long time) { - modifiers = applyLeftMouse(modifiers); + if (id != -1) + modifiers = applyLeftMouse(modifiers); switch (id) { case -1: // JavaScript mouseWheel(time, x, modifiers | Binding.WHEEL); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |