Watch
1
0
Fork
You've already forked souveraine
0

Revert the duplicate onCanceled on the rail

The handler already existed and already did this — a second one in the same
MouseArea is "Property value set multiple times", which failed the whole
module and took the shell down. The pill's stranded-pose symptom is
something else; the cancel path was never the hole.
This commit is contained in:
Fimeg 2026-08-07 02:07:22 -04:00
commit e218601199

View file

@ -351,26 +351,6 @@ PanelWindow {
rail.dragTravel = 0
}
// A drag that ends without a release.
//
// `onReleased` is the only thing that clears the pose, and a MouseArea
// whose grab is taken away never gets one it gets this instead. So a
// cancelled climb left `dragging` true, `zonePullProgress` set, and the
// app posed at 0.6: shrunken, with nothing on screen to say why, and
// no way back except pulling the pill again to force a fresh
// press/release through. Casey, 2026-08-06: "It's been freezing up and
// making me pull down the pill just so that it would resume full
// state."
//
// Never a commit. A gesture nobody finished must not decide anything
// it only has to put the glass back the way it was.
onCanceled: {
if (!rail.dragging)
return
rail.dragging = false
rail.dragTravel = 0
endPull(false)
}
onPositionChanged: mouse => {
if (!rail.dragging)