mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-30 18:27:00 +01:00
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.