Files
craft-libs/crates/ui-contract
skylartaylor 87c02c2dbd Checkbox sweep: a sweep a sibling takes after its owner asked runs the pass again
A pass carries at most one press, and the input hook holds what follows it for the
next frame, so a drag that crosses a box and releases is travelled in the frame after
the press. The owner there is drawn before the box it crossed, checks the sweep
before that box takes it, and finds nothing engaged; the value it is owed arrived a
frame later through a repaint. A press that finishes a sweep as the next press starts
therefore left the box it began on unset in the frame the sweep ended (trial
a_completed_checkbox_sweep_that_crossed_a_box_below_its_owner_still_sets_the_owner).

A box that takes a sweep after its owner asked in the same pass now asks the pass to
run again, the way an edit whose value a pass showed stale does, so the owner's value
is current in the frame it changed; a pass egui will not run again keeps the repaint,
which runs the owner's check next frame. A finished sweep taken after its owner asked
measures that the same way `accept` does: only the take that first engages the sweep
asks for the pass, so a second crossed box asks for none.
2026-11-26 04:28:52 +01:00
..
2026-11-15 09:18:08 +00:00