aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r--src/library_sdl.js6
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') {