#57 : Fix non passive touchstart event

This commit is contained in:
Vadim
2021-08-12 22:09:23 +03:00
parent ebdbdaa453
commit e95618c4bd
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
// start event
export function addStartEventListener(source, cb) {
source.addEventListener('mousedown', cb)
source.addEventListener('touchstart', cb)
source.addEventListener('touchstart', cb, { passive: true })
}
export function removeStartEventListener(source, cb) {
source.removeEventListener('mousedown', cb)