Skip to main content
VLau
Associate III
December 6, 2021
Solved

Forbit clicks outside window

  • December 6, 2021
  • 2 replies
  • 939 views

I need ModalWindow functionality where clicks outside it are forbidden. In my case my window is a container, how can I prevent clicks outside it?

Seems easy but doesn't work for me. I tried make empty boxes and empty containers size of screen and set them untouchable and visible. However I still can click content under them.

This topic has been closed for replies.
Best answer by Michael K

Yup, if you wanted to do this in the designer you can create the empty container and add a ClickListener mixin to it.

2 replies

VLau
VLauAuthor
Associate III
December 6, 2021

Ok, solved it. Needed to set empty container touchable instead of untouchable. In this case clicks go to that empty container which covers Screen content.

Michael K
Michael KBest answer
Senior III
December 7, 2021

Yup, if you wanted to do this in the designer you can create the empty container and add a ClickListener mixin to it.

Embedded UI/UX Consulting: cadenza.design