From 4458d7355ec7931eae8b8facf4097e5b3538af43 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 3 Feb 2021 17:18:43 +0100 Subject: [PATCH] delay scroll reset after launch --- containments/homescreen/package/contents/ui/main.qml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/containments/homescreen/package/contents/ui/main.qml b/containments/homescreen/package/contents/ui/main.qml index a256f721..7d237991 100644 --- a/containments/homescreen/package/contents/ui/main.qml +++ b/containments/homescreen/package/contents/ui/main.qml @@ -361,12 +361,17 @@ Item { left: parent.left right: parent.right } - onLaunched: { + onLaunched: scrollResetTimer.restart(); + favoriteStrip: favoriteStrip + appletsLayout: appletsLayout + } + Timer { + id: scrollResetTimer + interval: 1000 + onTriggered: { scrollAnim.to = 0; scrollAnim.restart(); } - favoriteStrip: favoriteStrip - appletsLayout: appletsLayout } } }