diff options
author | Usagi Ito <usagi@WonderRabbitProject.net> | 2014-04-19 11:18:14 +0900 |
---|---|---|
committer | Usagi Ito <usagi@WonderRabbitProject.net> | 2014-04-19 11:18:14 +0900 |
commit | 6596d145ae24c7accc99c68f341689e5a0a73c1c (patch) | |
tree | 945128153b23af4a8cdb70ecaf7b9790502c7c0d /src | |
parent | 6960d2296299e96d43e694806f5d35799ef8d39c (diff) |
fix GLFW glfwGetMouseWheel is reversed bug
Diffstat (limited to 'src')
-rw-r--r-- | src/library_glfw.js | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |