ios: always preventDefault on touchstart to avoid emulated mousedown (#356)
This commit is contained in:
parent
e7d2fd07d8
commit
2c7a9c405d
1 changed files with 1 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ 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 = (window.pageYOffset === 0)
|
||||
}, false)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue