Skip to content

Commit

Permalink
fix movementX|Y workaround with closure
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed May 6, 2012
1 parent b73e450 commit 69dd0dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library_sdl.js
Expand Up @@ -280,8 +280,8 @@ var LibrarySDL = {
switch(event.type) {
case 'mousemove':
// workaround for firefox bug 750111
event.movementX = event.mozMovementX;
event.movementY = event.mozMovementY;
event['movementX'] = event['mozMovementX'];
event['movementY'] = event['mozMovementY'];
// fall through
case 'keydown': case 'keyup': case 'mousedown': case 'mouseup': case 'DOMMouseScroll':
if (event.type == 'DOMMouseScroll') {
Expand Down

0 comments on commit 69dd0dd

Please sign in to comment.