NativeScript / ios-jsc

NativeScript for iOS using JavaScriptCore
http://docs.nativescript.org/runtimes/ios
Apache License 2.0
298 stars 59 forks source link

RootLayout on iOS doesn't allow to touch elements behind after adding view #1293

Open darkyelox opened 2 years ago

darkyelox commented 2 years ago

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

Describe the bug The RootLayout is a great idea for put views over other views but is there a way for making it transparent to events? (maybe with some kind of option) or have I to extend the class and create my own implementation? my problem is that I have a floating tap that I want to be present in several of my views so I used RootLayout, it works perfect on Android but iOS makes all my views unresponsive to user touches (maybe hit test problem)

RootLayoutProblem

To Reproduce Put some button with tap event in a view, add a view to RootLayout, button becomes unresponsive to touch events

getRootLayout().addChild(view)

Expected behavior The option to enable or disable touch events through a RootLayout (for example cases: a Dialog ( no events enabled) a floating button (enable events for the rest of page)).