From ee52d45b95b4a44568614a1b695cd049ecc9dbf9 Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Fri, 29 Jun 2018 05:29:03 +0900 Subject: [PATCH] Closing on mobile, bind touchstart (#94) --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 9fa675d..e2dbca7 100644 --- a/src/index.js +++ b/src/index.js @@ -73,6 +73,7 @@ export default class Driver { this.window.addEventListener('resize', this.onResize, false); this.window.addEventListener('keyup', this.onKeyUp, false); this.window.addEventListener('click', this.onClick, false); + this.window.addEventListener('touchstart', this.onClick, false); } /**