diff --git a/main.py b/main.py index 1adb294..23e27ae 100644 --- a/main.py +++ b/main.py @@ -364,7 +364,6 @@ def show(index): body.animate(ltk.to_js({ "scrollTop": height - 800 }), 1500, 'swing', lambda: body.animate(ltk.to_js({ "scrollTop": 0 }), 300, 'swing') ) - # ltk.find("#main").animate(ltk.to_js({ "left": 0 })) return x = ltk.parse_float(item.css("left")) y = ltk.parse_float(item.css("top")) @@ -390,11 +389,11 @@ def show(index): ltk.find("#main").animate( ltk.to_js({ "left": -x + width * 3 /4, - }), 500, + }), 1000, lambda: ltk.find("#main").animate( ltk.to_js({ "left": 0, - }), 500 + }), 1000 ) )