Skip to content

Commit 3897686

Browse files
committed
chore: bring logs bac
1 parent 7cfe2d6 commit 3897686

File tree

1 file changed

+9
-3
lines changed
  • plugin/platforms/android/java/com/nativescript/gesturehandler

1 file changed

+9
-3
lines changed

plugin/platforms/android/java/com/nativescript/gesturehandler/PageLayout.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)