Permalink
Browse files

fix movementX|Y workaround with closure

  • Loading branch information...
1 parent b73e450 commit 69dd0dd3bf0d46480062906201929860ef5453ad @kripken committed May 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/library_sdl.js
View
@@ -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') {

0 comments on commit 69dd0dd

Please sign in to comment.