提交 450ddd02 编写于 作者: J jkleban

fixes type error surrounding `event.targetTouches`

上级 76336e86
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册