From: <ha...@us...> - 2012-11-26 17:17:49
|
Revision: 17776 http://jmol.svn.sourceforge.net/jmol/?rev=17776&view=rev Author: hansonr Date: 2012-11-26 17:17:43 +0000 (Mon, 26 Nov 2012) Log Message: ----------- JavaScript two-fingered gestures for zoom and pan 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-11-26 16:54:52 UTC (rev 17775) +++ trunk/Jmol/src/org/jmol/awtjs2d/Mouse.java 2012-11-26 17:17:43 UTC (rev 17776) @@ -159,7 +159,7 @@ v1 = Vector3f.new3(x20 - x10, y20 - y10, 0); v2 = Vector3f.new3(x21 - x11, y21 - y11, 0); float dx = v2.length() - v1.length(); - mouseWheel(System.currentTimeMillis(), dx < 0 ? 1 : -1, Binding.WHEEL); + mouseWheel(System.currentTimeMillis(), dx < 0 ? -1 : 1, Binding.WHEEL); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |