From 65bd3a7e8a031ec8536f088589afb5f712755cb5 Mon Sep 17 00:00:00 2001 From: Jonas Weinz Date: Tue, 26 Feb 2019 10:20:56 +0100 Subject: [PATCH] use mousedown event instead of click for faster response --- tile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.js b/tile.js index a7cf457..7cd8d8a 100644 --- a/tile.js +++ b/tile.js @@ -38,7 +38,7 @@ class Tile { this.elem.addEventListener("mouseenter", c => this.on_mouseenter(c)); this.elem.addEventListener("mouseleave", c => this.on_mouseleave(c)); - this.elem.addEventListener("click", c => this.on_click(c)); + this.elem.addEventListener("mousedown", c => this.on_click(c)); } reset()