Fix#195 - Taps are doubled on touch devices

This commit is contained in:
Kamran Ahmed
2019-09-30 11:50:45 +04:00
parent 67efa9c78f
commit 71de0f8300
+2 -2
View File
@@ -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);
}
/**