mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
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..
This commit is contained in:
parent
10526dfb19
commit
f20d2ffa4d
@ -2190,16 +2190,10 @@
|
||||
function onTouchCancel( tracker, event ) {
|
||||
var i,
|
||||
touchCount = event.changedTouches.length,
|
||||
gPoints = [];
|
||||
gPoints = [],
|
||||
pointsList = tracker.getActivePointersListByType( 'touch' );
|
||||
|
||||
for ( i = 0; i < touchCount; i++ ) {
|
||||
gPoints.push( {
|
||||
id: event.changedTouches[ i ].identifier,
|
||||
type: 'touch'
|
||||
} );
|
||||
}
|
||||
|
||||
updatePointersCancel( tracker, event, gPoints );
|
||||
abortTouchContacts( tracker, event, pointsList );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user