1
0
mirror of https://github.com/danog/2048.git synced 2024-11-26 19:34:44 +01:00

fixes type error surrounding event.targetTouches

This commit is contained in:
jkleban 2015-09-28 11:58:11 -04:00
parent 76336e86ee
commit 450ddd0282

View File

@ -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
}