-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pan Zoom demo widgets are layered incorrectly #4128
Comments
maybe related. The pan zoom items can be interacted with, even outside of their window. (tested on https://egui.rs) PanZoom.mp4 |
closing #4448 in favor of this, thank @YgorSouza |
This bug seems to be a side effect of a workaround to get the pan zoom widgets to display above the window itself. egui/crates/egui_demo_lib/src/demo/pan_zoom.rs Lines 113 to 132 in 2c00cb3
The areas that hold the widgets are given a layer order of If the widgets were given 2024-06-21.15-48-58.mp4I'm not sure how this would be fixed without support for, say, parent/child layers. Possible feature request maybe? |
Actually, I just noticed this was already discussed in the PR that implemented the demo: #3906 (comment). |
When the layers are reordered at the end of the frame, the sublayers are placed directly above their respective parents. This allows having Areas inside Windows, e.g., for the pan-zoom container. * Closes <#4128> --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
When the layers are reordered at the end of the frame, the sublayers are placed directly above their respective parents. This allows having Areas inside Windows, e.g., for the pan-zoom container. * Closes <emilk#4128> --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Describe the bug
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: