From 3d290f2cccbbc2112f7f865f85b19ae001cf837b Mon Sep 17 00:00:00 2001 From: hkri Date: Sun, 25 Jul 2021 23:34:16 +0800 Subject: [PATCH] Remove outline and use mousedown. --- dist/app.css | 4 ++++ dist/app.js | 2 +- dist/index.html | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/app.css b/dist/app.css index 7591413..22760a8 100644 --- a/dist/app.css +++ b/dist/app.css @@ -1,3 +1,7 @@ +* { + outline: none; +} + body { padding: 0; margin: 0; diff --git a/dist/app.js b/dist/app.js index cb45723..cf69dd5 100644 --- a/dist/app.js +++ b/dist/app.js @@ -224,7 +224,7 @@ function resizeStage() { } tiles.forEach(function (button) { - button.onclick = function (e) { + button.onmousedown = function (e) { var tileId = e.target.id; var index = grid.indexOf(parseInt(tileId)); moveHorizontal(index); diff --git a/dist/index.html b/dist/index.html index 2e30277..b7fb255 100644 --- a/dist/index.html +++ b/dist/index.html @@ -3,7 +3,7 @@ - + Number Slide