aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-08-30 14:11:07 -0400
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-08-30 21:28:30 -0400
commitf550e7e504487e5e30aed4c9e5713e788fc741ce (patch)
treeb624425b5aef96afb2c99860005c7c62fbe798d7 /src/library_sdl.js
parent48c29e7ccf650b3820201e70ea401bbe3531df46 (diff)
Work around firefox bug 782777
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') {