mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 10:14:45 +00:00
homescreen: Fix fast sequential flicks not opening the app drawer
Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/188
This commit is contained in:
parent
7ecb92d3dd
commit
8f418a3ee1
1 changed files with 7 additions and 0 deletions
|
|
@ -60,6 +60,13 @@ QtObject {
|
||||||
onYPositionChanged: {
|
onYPositionChanged: {
|
||||||
movingUp = yPosition > oldYPosition;
|
movingUp = yPosition > oldYPosition;
|
||||||
oldYPosition = yPosition;
|
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
|
// yPosition when the homescreen pages are visible
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue