Skip to content
Discussion options

You must be logged in to vote

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

export component App inherits Window {
 Button {
  clicked() => {
   modal.visible = !modal.visible;
  }
 }

 modal := Rectangle {
     TouchArea {}  //  <--- added a TouchArea to intercept all the events.
 }
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bryce-happel-walton
Comment options

@ogoffart
Comment options

Answer selected by bryce-happel-walton
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
Converted from issue

This discussion was converted from issue #8040 on April 03, 2025 09:59.