Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f74c0f0

Browse files
authored
FlutterView will hadle dispatching all touch events to sub-views (#19482)
1 parent a2b75ce commit f74c0f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shell/platform/android/io/flutter/embedding/android/FlutterView.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,11 @@ public AccessibilityNodeProvider getAccessibilityNodeProvider() {
781781
}
782782
}
783783

784+
@Override
785+
public boolean onInterceptTouchEvent(MotionEvent ev) {
786+
return true;
787+
}
788+
784789
// TODO(mattcarroll): Confer with Ian as to why we need this method. Delete if possible, otherwise
785790
// add comments.
786791
private void resetWillNotDraw(boolean isAccessibilityEnabled, boolean isTouchExplorationEnabled) {

0 commit comments

Comments
 (0)