ios: prevent touchstart in fast-click instead
This commit is contained in:
parent
73d4a48438
commit
b38114345e
2 changed files with 1 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ document.addEventListener('touchstart', (event)=>{
|
|||
|
||||
DOM.dispatchEvent(e.target, 'fast-click', e)
|
||||
|
||||
if (e.preventDefault) event.preventDefault()
|
||||
event.preventDefault()
|
||||
|
||||
longTouchTimer = setTimeout(()=>{
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue