mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 19:14:26 +00:00
The shape record keeps each shape's place in the pass's paint order and the clip it shows through, and which root a transformed body layer belongs to. pointer::press_winner resolves every root recorded on the topmost layer at the press (a body layer's root beneath its body) and gives the press to the root whose winning shape was recorded last; egui's targets stay only to tell a raw egui widget on top. The sensing core starts a press on that root alone, so a control under a later body-sized widget takes its press and a frame handle over a nested editor wins over the editor. Member widgets over nested roots, which only steered egui's target, are gone. Trials: a control under a later body widget; one root of three overlapping ones starts each press.