From 450ddd02826d58b60d896148de2fb241d0e42323 Mon Sep 17 00:00:00 2001 From: jkleban Date: Mon, 28 Sep 2015 11:58:11 -0400 Subject: [PATCH] fixes type error surrounding `event.targetTouches` --- js/keyboard_input_manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/keyboard_input_manager.js b/js/keyboard_input_manager.js index 32a177a..ca01b3c 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 } -- GitLab