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()