diff --git a/js/keyboard_input_manager.js b/js/keyboard_input_manager.js index 32a177a47dc5452c979cdd0e14d1a2a188e779a0..ca01b3ce8995a5a20ac50219712d1ef95297ed99 100644 --- a/js/keyboard_input_manager.js +++ b/js/keyboard_input_manager.js @@ -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 } @@ -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 }