From 6f4b1d23aaa5f52cf49d6df601e3ad504e9c22a9 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Mon, 1 Jul 2024 18:05:29 -0400 Subject: [PATCH] Fix animation jitter in search screen --- .../components/Screens/SearchScreen/SearchScreen.bs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/playlet-lib/src/components/Screens/SearchScreen/SearchScreen.bs b/playlet-lib/src/components/Screens/SearchScreen/SearchScreen.bs index fe8f18f4..42c1d08c 100644 --- a/playlet-lib/src/components/Screens/SearchScreen/SearchScreen.bs +++ b/playlet-lib/src/components/Screens/SearchScreen/SearchScreen.bs @@ -286,6 +286,11 @@ function ScrollUp() as void if current = destination return end if + + if m.scrollAnimation.state = "running" and m.scrollAnimationInterpolator.reverse = true + return + end if + m.scrollAnimationInterpolator.reverse = true m.scrollAnimation.control = "start" end function @@ -296,6 +301,11 @@ function ScrollDown() as void if current = destination return end if + + if m.scrollAnimation.state = "running" and m.scrollAnimationInterpolator.reverse = false + return + end if + m.scrollAnimationInterpolator.reverse = false m.scrollAnimation.control = "start" end function