Skip to content

How to avoid events go through dialog window to underlying window? #1585

Answered by emilk
ruimo asked this question in Q&A
Discussion options

You must be logged in to vote

Clicks shouldn't go through windows, ui.input() is just short for ui.ctx().input(), and so shows all input to all of egui.

If you want to know if the pointer is in a Ui, use https://docs.rs/egui/latest/egui/struct.Ui.html#method.ui_contains_pointer

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ruimo
Comment options

Answer selected by ruimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants