Skip to content

Interaction restriction #346

Answered by emilk
luiswirth asked this question in Q&A
May 2, 2021 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

There is a painting demo at https://emilk.github.io/egui/#demo with the source code at https://github.com/emilk/egui/blob/master/egui_demo_lib/src/apps/demo/painting.rs

The critical part you are missing is Sense::drag() - this tells egui that you will be catching drags, and that egui should not use them

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@luiswirth
Comment options

@emilk
Comment options

@luiswirth
Comment options

@luiswirth
Comment options

@luiswirth
Comment options

Answer selected by luiswirth
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