diff --git a/src/input/InputManager.js b/src/input/InputManager.js index d004aa63a..198d9f6b6 100644 --- a/src/input/InputManager.js +++ b/src/input/InputManager.js @@ -570,7 +570,7 @@ var InputManager = new Class({ { var changedTouch = event.changedTouches[c]; - for (var i = 1; i < this.pointersTotal; i++) + for (var i = 1; i < pointers.length; i++) { var pointer = pointers[i]; @@ -608,7 +608,7 @@ var InputManager = new Class({ { var changedTouch = event.changedTouches[c]; - for (var i = 1; i < this.pointersTotal; i++) + for (var i = 1; i < pointers.length; i++) { var pointer = pointers[i]; @@ -665,7 +665,7 @@ var InputManager = new Class({ { var changedTouch = event.changedTouches[c]; - for (var i = 1; i < this.pointersTotal; i++) + for (var i = 1; i < pointers.length; i++) { var pointer = pointers[i]; @@ -701,7 +701,7 @@ var InputManager = new Class({ { var changedTouch = event.changedTouches[c]; - for (var i = 1; i < this.pointersTotal; i++) + for (var i = 1; i < pointers.length; i++) { var pointer = pointers[i]; diff --git a/src/input/InputPlugin.js b/src/input/InputPlugin.js index 89bfa147a..e9ec0b04e 100644 --- a/src/input/InputPlugin.js +++ b/src/input/InputPlugin.js @@ -573,9 +573,8 @@ var InputPlugin = new Class({ var manager = this.manager; var pointers = manager.pointers; - var pointersTotal = manager.pointersTotal; - for (i = 0; i < pointersTotal; i++) + for (i = 0; i < pointers.length; i++) { pointers[i].updateMotion(); } @@ -611,7 +610,7 @@ var InputPlugin = new Class({ // We got this far? Then we should poll for movement var captured = false; - for (i = 0; i < pointersTotal; i++) + for (i = 0; i < pointers.length; i++) { var total = 0; @@ -678,10 +677,9 @@ var InputPlugin = new Class({ return false; } - var pointersTotal = pointers.length; var captured = false; - for (var i = 0; i < pointersTotal; i++) + for (var i = 0; i < pointers.length; i++) { var total = 0; var pointer = pointers[i]; @@ -838,7 +836,7 @@ var InputPlugin = new Class({ var over = this._over; var manager = this.manager; - for (var i = 0, index; i < manager.pointersTotal; i++) + for (var i = 0, index; i < manager.pointers.length; i++) { index = drag[i].indexOf(gameObject);