File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
plugin/platforms/android/java/com/nativescript/gesturehandler Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -99,17 +99,23 @@ public boolean dispatchTouchEventToOrchestrator(MotionEvent ev) {
9999 this .mOrchestrator .onTouchEvent (ev );
100100 this .mPassingTouch = false ;
101101 }
102- // if (GestureHandler.debug) {
103- // Log.d("JS", "PageLayout dispatchTouchEventToOrchestrator " + this.mShouldIntercept);
104- // }
102+ if (GestureHandler .debug ) {
103+ Log .d ("JS" , "PageLayout dispatchTouchEventToOrchestrator " + this .mShouldIntercept );
104+ }
105105 return this .mShouldIntercept ;
106106 }
107107
108108 public boolean dispatchTouchEvent (MotionEvent ev ) {
109+ if (GestureHandler .debug ) {
110+ Log .d ("JS" , "PageLayout dispatchTouchEvent " + this .mDispatchToOrchestra );
111+ }
109112 if (this .mDispatchToOrchestra && this .dispatchTouchEventToOrchestrator (ev )) {
110113 return true ;
111114 }
112115 final boolean handled = super .dispatchTouchEvent (ev );
116+ if (GestureHandler .debug ) {
117+ Log .d ("JS" , "PageLayout dispatchTouchEvent to children " + handled );
118+ }
113119 // we need to always return true or gestures wont work on layouts because they don't handle touch so dispatchTouchEvent returns false
114120 return true ;
115121 }
You can’t perform that action at this time.
0 commit comments