use mousedown event instead of click for faster response

This commit is contained in:
Jonas Weinz 2019-02-26 10:20:56 +01:00
parent c070085d9b
commit 65bd3a7e8a

View File

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