Merge pull request #744 from javierquevedo/master

Fixed issue in iOS devices that would cause all touch events to fail …
This commit is contained in:
Ian Gilman 2015-10-27 09:00:43 -07:00
commit 8eb4cd9453

View File

@ -2190,16 +2190,10 @@
function onTouchCancel( tracker, event ) { function onTouchCancel( tracker, event ) {
var i, var i,
touchCount = event.changedTouches.length, touchCount = event.changedTouches.length,
gPoints = []; gPoints = [],
pointsList = tracker.getActivePointersListByType( 'touch' );
for ( i = 0; i < touchCount; i++ ) {
gPoints.push( { abortTouchContacts( tracker, event, pointsList );
id: event.changedTouches[ i ].identifier,
type: 'touch'
} );
}
updatePointersCancel( tracker, event, gPoints );
} }