File tree Expand file tree Collapse file tree
lib/android/app/src/main/java/com/reactnativenavigation/views/touch Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,13 +47,15 @@ open class OverlayTouchDelegate(
4747 private fun isInsideView (event : MotionEvent ): Boolean {
4848 val reactViewSurface = this .reactView.getChildAt(0 ) as ViewGroup
4949 for (i in 0 until reactViewSurface.childCount) {
50- val childViewGroup = reactViewSurface.getChildAt(i) as ViewGroup
50+ val childItem = reactViewSurface.getChildAt(i)
5151
52- if (childViewGroup.getChildAt(0 ) is DebuggingOverlay ) {
53- continue
52+ if (childItem is ViewGroup ) {
53+ if (childItem.getChildAt(0 ) is DebuggingOverlay ) {
54+ continue
55+ }
5456 }
5557
56- if (childViewGroup .isVisible && event.coordinatesInsideView(childViewGroup )) {
58+ if (childItem .isVisible && event.coordinatesInsideView(childItem )) {
5759 return true
5860 }
5961 }
You can’t perform that action at this time.
0 commit comments