more touch events (just to trigger 'em all)

This commit is contained in:
Jonas Weinz 2019-02-26 13:18:46 +01:00
parent 1ab186a3bc
commit 8e4580e478
2 changed files with 5 additions and 0 deletions

View File

@ -1,8 +1,12 @@
html, body {
overflow-x: hidden;
}
body {
margin: 0;
background: rgb(39, 34, 39);
outline: 0;
position: relative;
}
:root{

View File

@ -39,6 +39,7 @@ class Tile
this.elem.addEventListener("mouseenter", c => this.on_mouseenter(c));
this.elem.addEventListener("mouseleave", c => this.on_mouseleave(c));
this.elem.addEventListener("mousedown", c => this.on_click(c));
this.elem.addEventListener("touchstart", c => this.on_click(c));
}
reset()