Permalink
Browse files

Moved event handlers to document level

  • Loading branch information...
1 parent ef709d9 commit 89e941b01d6950c2481558fefb0a7fe58ba9e366 @robashton committed Mar 31, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 site/game.js
View
@@ -661,9 +661,9 @@
this.wrappedElement.on({
click: _.bind(this.onClick, this)
});
- this.element.addEventListener('touchstart', _.bind(this.onTouchStart, this), true);
- this.element.addEventListener('touchmove', _.bind(this.onTouchMove, this), true);
- this.element.addEventListener('touchend', _.bind(this.onTouchEnd, this), true);
+ document.addEventListener('touchstart', _.bind(this.onTouchStart, this), true);
+ document.addEventListener('touchmove', _.bind(this.onTouchMove, this), true);
+ document.addEventListener('touchend', _.bind(this.onTouchEnd, this), true);
};
Input.prototype = {

0 comments on commit 89e941b

Please sign in to comment.