mirror of
https://github.com/storytold/soundcraft.git
synced 2026-10-14 14:26:46 -04:00
Press a checkbox and drag over its neighbours: each box the pointer passes takes the state the first one switched to, until the button is released. A click toggles one box, as before. Same design as VectorCraft and PhotoCraft. widgets::checkbox wraps egui's checkbox and adds the drag; every ui.checkbox call in ui-egui uses it. Only boxes the pointer can see are set, so rows scrolled out of a list or under another window stay as they are. Tests: widgets::tests (drag sets, drag unchecks and stops at release, hidden rows untouched, a click toggles one) and tests/group_dialog.rs (dragging down the Group dialog's track list groups every track).