use mousedown event instead of click for faster response
This commit is contained in:
parent
c070085d9b
commit
65bd3a7e8a
2
tile.js
2
tile.js
@ -38,7 +38,7 @@ class Tile
|
|||||||
{
|
{
|
||||||
this.elem.addEventListener("mouseenter", c => this.on_mouseenter(c));
|
this.elem.addEventListener("mouseenter", c => this.on_mouseenter(c));
|
||||||
this.elem.addEventListener("mouseleave", c => this.on_mouseleave(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()
|
reset()
|
||||||
|
Loading…
Reference in New Issue
Block a user