From 6596d145ae24c7accc99c68f341689e5a0a73c1c Mon Sep 17 00:00:00 2001 From: Usagi Ito Date: Sat, 19 Apr 2014 11:18:14 +0900 Subject: fix GLFW glfwGetMouseWheel is reversed bug --- src/library_glfw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/library_glfw.js b/src/library_glfw.js index b54205ad..14864992 100644 --- a/src/library_glfw.js +++ b/src/library_glfw.js @@ -197,7 +197,7 @@ var LibraryGLFW = { }, onMouseWheel: function(event) { - GLFW.wheelPos += Browser.getMouseWheelDelta(event); + GLFW.wheelPos -= Browser.getMouseWheelDelta(event); if (GLFW.mouseWheelFunc && event.target == Module["canvas"]) { Runtime.dynCall('vi', GLFW.mouseWheelFunc, [GLFW.wheelPos]); -- cgit v1.2.3-18-g5258