The problem
An horizontal FlatList completely disable the vertical scroll.
How to reproduce
Simplified test case: https://codesandbox.io/s/yvqoo5nqr9
Steps to reproduce:
Expected behavior
When scrolling vertically in the FlatList, the parent ScrollView should scroll vertically.
Environment (include versions). Did this work in previous versions?
I don't know if this work in the previous version.
The same issue is for ScrollView.
If you set an horizontal ScrollView inside a vertical ScrollView, it's impossible to scroll vertically from the horizontal one.
Here's the sandbox: https://codesandbox.io/s/k3j2w7yx25
And just to confirm, this is not the behavior in React Native:
And because FlatList uses the ScrollView as default scroll view (VirtualizedList/index 991), this push request solves the vertical scrolling for both components ScrollView & FlatList.
馃帀
For people looking for a workaround while this issue is still opened:
https://codesandbox.io/s/ywjqyoo3rz
The same problem occurs when scrollEnabled={false}.
@necolas
Have we fixed this issue? I am still facing this issue.
Not for touch scroll only
Not for touch scroll only
Any plans to cater this as well.
Please let me know if there is any work around to make it scroll.
Thanks for the prompt response.
@ranjanrukhaya @yairopro
I've been having the same problem here with my app, but today I managed to fix it by adding:
overscrollBehaviorY: 'auto',
touchAction: 'auto'
to the style of my <FlatList>.
It seems to work well (scroll and touch) on Chrome.
If you guys have any thoughts about this, I'd like to hear!
@necolas
https://github.com/necolas/react-native-web/issues/1042#issuecomment-407157580
Is there a way around this?
Most helpful comment
The same issue is for
ScrollView.If you set an horizontal
ScrollViewinside a verticalScrollView, it's impossible to scroll vertically from the horizontal one.Here's the sandbox: https://codesandbox.io/s/k3j2w7yx25