NativeScript / ios-jsc

NativeScript for iOS using JavaScriptCore

Home Page:http://docs.nativescript.org/runtimes/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

darkyelox opened this issue · comments

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):

  • CLI: 8.1.4
  • Cross-platform modules: 8.1.4
  • iOS Runtime: 8.1.0

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)).