Skip to content

Commit

Permalink
fixes type error surrounding event.targetTouches
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonKleban committed Sep 28, 2015
1 parent 76336e8 commit 450ddd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/keyboard_input_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ KeyboardInputManager.prototype.listen = function () {

gameContainer.addEventListener(this.eventTouchstart, function (event) {
if ((!window.navigator.msPointerEnabled && event.touches.length > 1) ||
event.targetTouches > 1) {
event.targetTouches.length > 1) {
return; // Ignore if touching with more than 1 finger
}

Expand All @@ -100,7 +100,7 @@ KeyboardInputManager.prototype.listen = function () {

gameContainer.addEventListener(this.eventTouchend, function (event) {
if ((!window.navigator.msPointerEnabled && event.touches.length > 0) ||
event.targetTouches > 0) {
event.targetTouches.length > 0) {
return; // Ignore if still touching with one or more fingers
}

Expand Down

0 comments on commit 450ddd0

Please sign in to comment.