Files
craft-libs/crates/behavior
skylartaylor 82ad894e09 Checkbox sweep: a release that gives way to a new press claims no drag it never started
Reviewer finding: once a press's `Down` was reported, a far release with no
move before it marked the press as dragging and held the release for the
`DragStart` it still owed. A new press in the same batch ended it first, so the
parts read a dragging `Release` with no `DragStart` before it.

A release that gives way to a new press now reports the drag only when the
parts were told its start (`Open::drag_reported`), so a press reads `Down`, a
`Release`, or `DragStart` then `Drag` and `Release`. Where the button went up
stays in `Release::pos`, and a release past slop is no click either way.

Regression: `Down` reported, then a far release with no move and a new press in
the same batch.
2026-11-26 21:12:12 +01:00
..