mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-03-29 11:49:50 +03:00
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:
commit
8eb4cd9453
1 changed files with 4 additions and 10 deletions
|
@ -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…
Add table
Reference in a new issue