Commit 0534110e authored by Marco Martin's avatar Marco Martin
Browse files

Fix the math of the down gesture

parent 9208a8eb
Pipeline #194153 passed with stage
in 38 minutes and 36 seconds
......@@ -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: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment