From 28a5c0d826ca97abfd4ed07af1deedc6ed3be000 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 19 Oct 2023 01:32:29 +0200 Subject: Mobile layout. --- play.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'play.js') 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" } ) } } -- cgit v1.2.3