diff --git a/style.css b/style.css index 1e43685..785f980 100644 --- a/style.css +++ b/style.css @@ -1,8 +1,12 @@ +html, body { + overflow-x: hidden; +} body { margin: 0; background: rgb(39, 34, 39); outline: 0; + position: relative; } :root{ diff --git a/tile.js b/tile.js index 7cd8d8a..f66e1e9 100644 --- a/tile.js +++ b/tile.js @@ -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()