diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-10 17:02:27 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-10 17:02:27 -0700 |
commit | 7998d7bc93d638666510fb515b58fd3715ca52e4 (patch) | |
tree | 3415d4b0dec5e3ac7aeb23bcb2ac088538008547 /src | |
parent | 4d4fe2e9f093b07a4797e1e86eab4da9ecb50211 (diff) |
fix mouse wheel deltas for closure compiler in html5 API, and add some closure testing; #2214
Diffstat (limited to 'src')
-rw-r--r-- | src/library_html5.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library_html5.js b/src/library_html5.js index b17a0d4d..0a938df6 100644 --- a/src/library_html5.js +++ b/src/library_html5.js @@ -240,10 +240,10 @@ var LibraryJSEvents = { var handlerFunc = function(event) { var e = event || window.event; JSEvents.fillMouseEventData(JSEvents.wheelEvent, e); - {{{ makeSetValue('JSEvents.wheelEvent', C_STRUCTS.EmscriptenWheelEvent.deltaX, 'e.deltaX', 'double') }}}; - {{{ makeSetValue('JSEvents.wheelEvent', C_STRUCTS.EmscriptenWheelEvent.deltaY, 'e.deltaY', 'double') }}}; - {{{ makeSetValue('JSEvents.wheelEvent', C_STRUCTS.EmscriptenWheelEvent.deltaZ, 'e.deltaZ', 'double') }}}; - {{{ makeSetValue('JSEvents.wheelEvent', C_STRUCTS.EmscriptenWheelEvent.deltaMode, 'e.deltaMode', 'i32') }}}; + {{{ makeSetValue('JSEvents.wheelEvent', C_STRUCTS.EmscriptenWheelEvent.deltaX, 'e["deltaX"]', 'double') }}}; + {{{ makeSetValue('JSEvents.wheelEvent', C_STRUCTS.EmscriptenWheelEvent.deltaY, 'e["deltaY"]', 'double') }}}; + {{{ makeSetValue('JSEvents.wheelEvent', C_STRUCTS.EmscriptenWheelEvent.deltaZ, 'e["deltaZ"]', 'double') }}}; + {{{ makeSetValue('JSEvents.wheelEvent', C_STRUCTS.EmscriptenWheelEvent.deltaMode, 'e["deltaMode"]', 'i32') }}}; var shouldCancel = Runtime.dynCall('iiii', callbackfunc, [eventTypeId, JSEvents.wheelEvent, userData]); if (shouldCancel) { e.preventDefault(); |