Remove outline and use mousedown.

This commit is contained in:
John Espiritu 2021-07-25 23:34:16 +08:00
parent d16d8c6ce3
commit 3d290f2ccc
3 changed files with 6 additions and 2 deletions

4
dist/app.css vendored
View File

@ -1,3 +1,7 @@
* {
outline: none;
}
body {
padding: 0;
margin: 0;

2
dist/app.js vendored
View File

@ -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);

2
dist/index.html vendored
View File

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="stylesheet" href="app.css"/>
<title>Number Slide</title>
</head>