You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VirtualizedList: incorrect direction when inverted and keyboard scrolling #2233
All the same symptoms as issue #995, except this time keyboard buttons such as ⬆️ would scroll down, ⬇️ would scroll up, as well as PageUp would scroll one page down, and PageDown would scroll one page up.
Perhaps the 3 of you can work together to get VirtualizedList working for your needs? And if there are examples and unit tests to include in this repo that would also be a great help to limit regressions
Ok I've added commentary to #2236. I don't know if the scroll direction issues you are talking about are react-native-web only, or if they reproduce in react-native with a device with keyboard (like iPad with Magic Keyboard or a Samsung DeX device or whatever with a keyboard paired) - but if it's RNW-only issue it would be good to test out whether it continues to be a problem from my code. I'll report back when things are committed and pushed, so you would be able to test that against DavidRieman/react-native-web main branch at that time.
if they reproduce in react-native with a device with keyboard (like iPad with Magic Keyboard or a Samsung DeX device or whatever with a keyboard paired)
I tested on an iPad, and it seems like iOS doesn't support scrolling with the keyboard arrows.
To anyone out there looking for a desperate quick fix to this issue, I ended up solving it with a couple hacks, see this commit: staltz/manyverse@4e0cfd6
The gist is that you should:
Make sure to force focus on one child in the inverted list, e.g. UIManager.focus(viewRef.current)
Patch react-native-web to listen to keydown events and mimic scroll behavior (see below)
Activity
necolas commentedon Feb 24, 2022
Yeah. The
scale:-1inversion hack used by VirtualizedList just isn't the way to gonecolas commentedon Feb 25, 2022
This PR by @azimgd removes the transform and fixes another issue: copy-paste text order #2151
necolas commentedon Feb 25, 2022
@DavidRieman is also working on fixing visualization #2236.
Perhaps the 3 of you can work together to get VirtualizedList working for your needs? And if there are examples and unit tests to include in this repo that would also be a great help to limit regressions
DavidRieman commentedon Feb 25, 2022
Ok I've added commentary to #2236. I don't know if the scroll direction issues you are talking about are react-native-web only, or if they reproduce in react-native with a device with keyboard (like iPad with Magic Keyboard or a Samsung DeX device or whatever with a keyboard paired) - but if it's RNW-only issue it would be good to test out whether it continues to be a problem from my code. I'll report back when things are committed and pushed, so you would be able to test that against
DavidRieman/react-native-webmain branch at that time.DavidRieman commentedon Feb 25, 2022
Ok the https://github.com/davidrieman/react-native-web/
mainbranch now has testable upgradedVirtualizedListincludingSectionListandFlatListtoo.staltz commentedon Mar 1, 2022
I tested on an iPad, and it seems like iOS doesn't support scrolling with the keyboard arrows.
staltz commentedon Mar 1, 2022
To anyone out there looking for a desperate quick fix to this issue, I ended up solving it with a couple hacks, see this commit: staltz/manyverse@4e0cfd6
The gist is that you should:
UIManager.focus(viewRef.current)keydownevents and mimic scroll behavior (see below)CLICK HERE TO SEE THE PATCH FILE
shrehatiwari commentedon Sep 19, 2022
May I solve this VirtualizedList issue stating incorrect direction when inverted and keyboard scrolling ?
necolas commentedon Mar 27, 2023
Closing this as there's an issue in RN to move Animated, VirtualizedList, and FlatList to packages that get published to npm react/react-native#35263.
This is the issue that is implicitly tracking problems with using transforms for inversion react/react-native#30383