aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-04-24 13:49:10 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-04-24 13:49:10 -0700
commit11380b1aae834f751e7f4ad966095caa0a0fd8e5 (patch)
treeefac7eca7563e10d5348c82b27f6d4340fb468ed /src
parent34e58f9c073eca117ea890d14ad3f5f6ad374e30 (diff)
parent6596d145ae24c7accc99c68f341689e5a0a73c1c (diff)
Merge pull request #2304 from usagi/fix-GLFW_glfwGetMouseWheel_is_reversed-bug
fix GLFW glfwGetMouseWheel is reversed bug
Diffstat (limited to 'src')
-rw-r--r--src/library_glfw.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_glfw.js b/src/library_glfw.js
index 0b3fccd4..6d539326 100644
--- a/src/library_glfw.js
+++ b/src/library_glfw.js
@@ -211,7 +211,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]);