you could try put a workflow on whatever your background element is changing the bool to false and then have stop click propagation on the elements you don’t want it to change.
As you can see here in logs, when i click on user icon(top righ corner) workflow for user icon change variable to True. But because i have workflow on Main Container to reset same variable it reset it immediately to false.
Here you can see that z-axis for user icon is 51(so its above) and z-axis for Main Container is 50(so its bellow) but still it react on user icon like i have click on container.
I want when i click on User Icon, variable to be set to True(i have workflow for this) but when i click on any other place on page this variable to be Reseted.
Thank you man this was helpfull But now have other problem. When i set variable to True and its open container with elements in it, after i click on some element it close it(reset variable). Look bottom for example. When i click on input element to write something its close it.