Is there a way to prevent `Modifier.verticalScroll...
# compose
m
Is there a way to prevent
Modifier.verticalScroll()
from taking over/canceling vertical drag events in nested AndroidView (contains 3rd party Java chart component)?
I’m properly getting ACTION_DOWN, ACTION_MOVE but immediately after ACTION_CANCEL from my
onTouchEvent
inside the AndroidView chart component. If i remove verticalScroll modifier from parent composable, it’s working fine.
Found a solution:
Copy code
ViewParent parent = getParent();
if (parent != null)
    parent.requestDisallowInterceptTouchEvent(true);
before executing my code in the ACTION_MOVE block of my
onTouchEvent