From 0534110eeda9a2162c1afa5d6aa0c847b9e5ae0a Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 22 Jun 2022 17:54:54 +0200 Subject: [PATCH] Fix the math of the down gesture --- src/effects/private/qml/WindowHeapDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/private/qml/WindowHeapDelegate.qml b/src/effects/private/qml/WindowHeapDelegate.qml index e318c9e9fb..6f71b402dd 100644 --- a/src/effects/private/qml/WindowHeapDelegate.qml +++ b/src/effects/private/qml/WindowHeapDelegate.qml @@ -344,7 +344,7 @@ Item { const startDistance = thumb.windowHeap.Kirigami.ScenePosition.y + thumb.windowHeap.height - centroid.scenePressPosition.y; const localPosition = thumb.windowHeap.Kirigami.ScenePosition.y + thumb.windowHeap.height - centroid.scenePosition.y; - return Math.min(startDistance / localPosition, 1); + return 1 - Math.min(localPosition/startDistance, 1); } onActiveChanged: {