diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-19 01:32:29 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-20 19:05:27 +0200 |
commit | 28a5c0d826ca97abfd4ed07af1deedc6ed3be000 (patch) | |
tree | 131f0d758e81a5d6d7f98d6f6a630b4a3558d8ec /play.js | |
parent | 49480720cf474a7cc74854f912b868efb8a20f27 (diff) | |
download | time-of-crisis-28a5c0d826ca97abfd4ed07af1deedc6ed3be000.tar.gz |
Mobile layout.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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" } ) } } |