Z-index Modal Behavior #8044
-
Bug DescriptionI would expect that when a component is covering another component, the component underneath would not receive user input. Example video: Reproducible Code (if applicable)export component App inherits Window {
Button {
clicked() => {
modal.visible = !modal.visible;
}
}
modal := Rectangle {}
} Environment Details
Product ImpactMy application is entirely keyboard controlled, so it does not affect me, but I would expect this behavior regardless. |
Beta Was this translation helpful? Give feedback.
Answered by
ogoffart
Apr 3, 2025
Replies: 1 comment 2 replies
-
By default, components are transparent for mouse / touch input. export component App inherits Window {
Button {
clicked() => {
modal.visible = !modal.visible;
}
}
modal := Rectangle {
TouchArea {} // <--- added a TouchArea to intercept all the events.
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
bryce-happel-walton
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default, components are transparent for mouse / touch input.
The way to have them not recieve the input is to put a TouchArea in it.
So