mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-12 20:34:22 +00:00
egui spreads a wheel notch over the next frames. When a number field took a notch and the pointer then left the field, the rest of that notch scrolled the panel under the pointer, or a panel drawn before the field. - A begin-pass plugin (`WheelTailPlugin`) keeps, per viewport, how much of the notches number fields took egui has not let out yet, and takes what egui lets out of them out of each pass's scrolling before any panel scrolls. - It reads each pass's wheel events in order with egui's touch rules (start, end, cancel, and the timeout of a touch that never ends), so a turn inside a touch, or one ended in the same pass, leaves nothing owed. - A turn the other way on the panel while the rest runs out scrolls the panel by its whole size.