mirror of
https://github.com/kamranahmedse/driver.js.git
synced 2026-10-31 03:52:13 +08:00
Fix#195 - Taps are doubled on touch devices
This commit is contained in:
+2
-2
@@ -97,9 +97,9 @@ export default class Driver {
|
||||
// Issue: https://github.com/kamranahmedse/driver.js/issues/150
|
||||
if (!('ontouchstart' in document.documentElement)) {
|
||||
this.window.addEventListener('click', this.onClick, false);
|
||||
} else {
|
||||
this.window.addEventListener('touchstart', this.onClick, false);
|
||||
}
|
||||
|
||||
this.window.addEventListener('touchstart', this.onClick, false);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user