Files
craft-libs/crates/behavior/src
dotCooCoo 988e77876f ui: a canvas body can claim a wheel gesture and mark it modal
Wheel gains claimed, claimed_gathered, claimed_zoom_gathered and
claimed_spent. CanvasSpace::claim_wheel claims the pass's share of the
gesture the canvas owns and records the motion the body used up; the
gesture's later shares carry the claim and count only the shares the
body claimed, so a body that turns a gesture into steps keeps no state
of its own. A second claim in the same pass replaces the first, and a
claim outside a running pass, of a gesture another taker owns, or with
a non-finite spent value is refused. claim_wheel returns whether the
claim was taken.

The canvas does not move its view by a claimed gesture: it skips the
navigation of claimed shares and drops the eased wheel, the eased wheel
zoom, the touchpad glide and any partial zoom notch the gesture still
owed, also in passes without a share and after a device end.

CanvasSpace::mark_wheel_modal marks the running gesture as gone on
under one of the app's own modal windows, so its later shares carry
Wheel::modal until it ends. Synthesized end shares carry the claims of
the gesture they end, and a gesture the split hands to another owner
starts its claims again.
2026-11-29 16:22:43 -08:00
..
2026-11-24 02:01:29 +01:00
2026-11-18 06:05:43 -05:00