Merge pull request #58 from vadimkorr/bugfix/#57_Fix-non-passive-touchstart
bugfix/#57 Fix non passive touchstart
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// tap start event
|
||||
export function addFocusinEventListener(source, cb) {
|
||||
source.addEventListener('touchstart', cb)
|
||||
source.addEventListener('touchstart', cb, { passive: true })
|
||||
}
|
||||
export function removeFocusinEventListener(source, cb) {
|
||||
source.removeEventListener('touchstart', cb)
|
||||
|
||||
Reference in New Issue
Block a user