Fix the math of the down gesture
This commit is contained in:
parent
9208a8eb0e
commit
0534110eed
1 changed files with 1 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue