diff options
author | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-08-30 14:11:07 -0400 |
---|---|---|
committer | Ehsan Akhgari <ehsan.akhgari@gmail.com> | 2012-08-30 21:28:30 -0400 |
commit | f550e7e504487e5e30aed4c9e5713e788fc741ce (patch) | |
tree | b624425b5aef96afb2c99860005c7c62fbe798d7 /src/library_sdl.js | |
parent | 48c29e7ccf650b3820201e70ea401bbe3531df46 (diff) |
Work around firefox bug 782777
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r-- | src/library_sdl.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index b49c984a..f0520cbc 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -351,6 +351,12 @@ var LibrarySDL = { // workaround for firefox bug 750111 event['movementX'] = event['mozMovementX']; event['movementY'] = event['mozMovementY']; + // workaround for Firefox bug 782777 + if (event['movementX'] == 0 && + event['movementY'] == 0) { + // ignore a mousemove event if it doesn't contain any movement info + return; + } // fall through case 'keydown': case 'keyup': case 'mousedown': case 'mouseup': case 'DOMMouseScroll': case 'mousewheel': if (event.type == 'DOMMouseScroll' || event.type == 'mousewheel') { |