ios: prevent touchstart in fast-click instead

This commit is contained in:
jean-emmanuel 2018-09-01 09:55:52 +02:00
parent 73d4a48438
commit b38114345e
2 changed files with 1 additions and 2 deletions

View file

@ -28,7 +28,7 @@ document.addEventListener('touchstart', (event)=>{
DOM.dispatchEvent(e.target, 'fast-click', e)
if (e.preventDefault) event.preventDefault()
event.preventDefault()
longTouchTimer = setTimeout(()=>{

View file

@ -5,7 +5,6 @@ if (navigator.platform.match(/iPhone|iPod|iPad/)) {
var preventNextMove = false
document.addEventListener('touchstart', (e)=>{
e.preventDefault()
if (e.touches.length === 1 && !e.target._drag_widget) preventNextMove = true
}, false)