events; drag: listen for touchcancel too
This commit is contained in:
parent
cac3f7d16b
commit
62b32cdd8a
2 changed files with 2 additions and 2 deletions
|
|
@ -46,4 +46,4 @@ document.addEventListener('touchstart', (event)=>{
|
|||
})
|
||||
|
||||
|
||||
DOM.addEventListener(document, 'touchend touchmove', clearLongTouchTimer)
|
||||
DOM.addEventListener(document, 'touchend touchmove touchcancel', clearLongTouchTimer)
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ document.addEventListener('touchmove', (event)=>{
|
|||
}
|
||||
}, true)
|
||||
|
||||
document.addEventListener('touchend', (event)=>{
|
||||
DOM.addEventListener(document, 'touchend touchcancel', (event)=>{
|
||||
for (var i in event.changedTouches) {
|
||||
if (isNaN(i) || !event.changedTouches[i]) continue
|
||||
var touchEvent = event.changedTouches[i]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue