Fix button behavior.

This commit is contained in:
John Espiritu 2021-07-26 00:04:31 +08:00
parent 3d290f2ccc
commit 4c38e0cc6c
2 changed files with 3 additions and 1 deletions

2
dist/app.css vendored
View File

@ -1,5 +1,6 @@
* {
outline: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
body {
@ -84,6 +85,7 @@ footer a:hover {
grid-template-columns: [c1] 33.33% [c2] 33.33% [c3] 33.33% [c-end];
grid-template-rows: [r1] 33.33% [r2] 33.33% [r3] 33.33% [r-end];
filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.15));
overflow: hidden;
}
#stage button {

2
dist/app.js vendored
View File

@ -224,7 +224,7 @@ function resizeStage() {
}
tiles.forEach(function (button) {
button.onmousedown = function (e) {
button.onclick = function (e) {
var tileId = e.target.id;
var index = grid.indexOf(parseInt(tileId));
moveHorizontal(index);