Skip to content

Commit ee0bd9e

Browse files
committed
fix(android): allow touch through on non clickable view
1 parent de77c28 commit ee0bd9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/platforms/android/java/com/swmansion/gesturehandler/GestureHandlerOrchestrator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ private static boolean shouldHandlerlessViewBecomeTouchTarget(View view, float c
462462
// TODO: ideally we should determine the pixel color under the given coordinates
463463
// and return
464464
// false if the color is transparent
465-
boolean isLeafOrTransparent = !(view instanceof ViewGroup) || view.getBackground() != null;
465+
boolean isLeafOrTransparent = view.isClickable() && (!(view instanceof ViewGroup || view instanceof android.view.TextureView) || view.getBackground() != null);
466466
return isLeafOrTransparent && isTransformedTouchPointInView(coords[0], coords[1], view);
467467
}
468468

0 commit comments

Comments
 (0)