summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-19 01:32:29 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-20 19:05:27 +0200
commit28a5c0d826ca97abfd4ed07af1deedc6ed3be000 (patch)
tree131f0d758e81a5d6d7f98d6f6a630b4a3558d8ec /play.js
parent49480720cf474a7cc74854f912b868efb8a20f27 (diff)
downloadtime-of-crisis-28a5c0d826ca97abfd4ed07af1deedc6ed3be000.tar.gz
Mobile layout.
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/play.js b/play.js
index 82b7422..51e95ec 100644
--- a/play.js
+++ b/play.js
@@ -8,7 +8,6 @@ function check_menu(id, x) {
function remember_position(e) {
if (e.parentElement) {
- console.log("REMEMBER", e.my_id)
let rect = e.getBoundingClientRect()
e.my_parent = e.parentElement
e.my_x = rect.x
@@ -32,7 +31,7 @@ function animate_position(e) {
{ transform: `translate(${dx}px, ${dy}px)`, },
{ transform: "translate(0, 0)", },
],
- { duration: 500, easing: "ease" }
+ { duration: 250, easing: "ease" }
)
}
} else {
@@ -41,7 +40,7 @@ function animate_position(e) {
{ opacity: 0 },
{ opacity: 1 }
],
- { duration: 500, easing: "ease" }
+ { duration: 250, easing: "ease" }
)
}
}