From f20d2ffa4d7768c08284a43a1952aa1fe857faa6 Mon Sep 17 00:00:00 2001 From: Javier Quevedo Date: Fri, 16 Oct 2015 15:52:20 +0200 Subject: [PATCH] Fixed issue in iOS devices that would cause all touch events to fail after a Multitasking Gesture was triggered. The fix works by aborting all touch contacts after a touch has been cancelled, since the Multitasking Gestures in iOS trigger the TouchCancel event on those touches which were active.. --- src/mousetracker.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/mousetracker.js b/src/mousetracker.js index e9b5acfc..0a66cfee 100644 --- a/src/mousetracker.js +++ b/src/mousetracker.js @@ -2190,16 +2190,10 @@ function onTouchCancel( tracker, event ) { var i, touchCount = event.changedTouches.length, - gPoints = []; - - for ( i = 0; i < touchCount; i++ ) { - gPoints.push( { - id: event.changedTouches[ i ].identifier, - type: 'touch' - } ); - } - - updatePointersCancel( tracker, event, gPoints ); + gPoints = [], + pointsList = tracker.getActivePointersListByType( 'touch' ); + + abortTouchContacts( tracker, event, pointsList ); }