From 8f418a3ee18b8984ff3236d8470aabb9c49dc7f7 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Thu, 26 May 2022 21:40:34 -0400 Subject: [PATCH] homescreen: Fix fast sequential flicks not opening the app drawer Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/188 --- .../default/package/contents/ui/HomeScreenState.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/containments/homescreens/default/package/contents/ui/HomeScreenState.qml b/containments/homescreens/default/package/contents/ui/HomeScreenState.qml index f6c48c74..af82dfb6 100644 --- a/containments/homescreens/default/package/contents/ui/HomeScreenState.qml +++ b/containments/homescreens/default/package/contents/ui/HomeScreenState.qml @@ -60,6 +60,13 @@ QtObject { onYPositionChanged: { movingUp = yPosition > oldYPosition; oldYPosition = yPosition; + + // speed up the animation + if (currentSwipeState == HomeScreenState.SwipingAppDrawerVisibility && yPosition <= 0) { + root.currentView = HomeScreenState.AppDrawerBeginningView; + root.resetSwipeState(); + openDrawerAnim.stop(); + } } // yPosition when the homescreen pages are visible