mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-26 19:17:02 -06:00
`contains_pointer` reads where the pointer is NOW; a slow frame can deliver the press on a menu and the move off it in the same pass, and the gate would then pass with the saved press origin under the menu. `layer_id_at(press_origin) == resp.layer_id` asks which layer owns the press itself: the menu's area (or any modal) wins there and the guide under it stays untouched. The navigator check stays for its own widget.