-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android - Flatlist with inverted horizontal on scroll goes back to the start #22710
Comments
+1 react: 16.6.3 |
I am having the same problem, react native 0.57.8 , react 16.6.3 |
Same problem here. I think this was fixed for vertical inverted scrolling, but the fix had references to Y values specifically, so I suspect it only fixed the vertical part? |
I am having the same problem, react native 0.57.8 , react 16.6.3 +1 |
Also on react-native 0.58.0 |
This comment has been minimized.
This comment has been minimized.
I'm pretty sure this is a duplicate of #23158 |
Not sure |
Nope That was vertical |
Does it still happen on 0.58.3? |
Still not fixed on 0.58.3 :( |
Yeap |
Ok then can any of you provide a minimal repro? |
like this?
|
Summary: ScrollView (as well as FlatList) used with horizontal={true} and inverted={true} do not scroll as expected due to a known Android P bug. Fixes facebook#22710. This is pretty much a clone of PR facebook#21117, applied to a horizontal ScrollView. [Android] [Fixed] - Fix Inverted Horizontal ScrollView on Android 1. Create a test application with a FlatList with horizontal={true} inverted={true}. 2. Fill it with data 3. Scroll and release your finger Pull Request resolved: facebook#23233 Differential Revision: D13915911 Pulled By: cpojer fbshipit-source-id: d32c82e6d9076f5ffdf342fcd71bd921e9c8a97b
Summary: ScrollView (as well as FlatList) used with horizontal={true} and inverted={true} do not scroll as expected due to a known Android P bug. Fixes #22710. This is pretty much a clone of PR #21117, applied to a horizontal ScrollView. [Android] [Fixed] - Fix Inverted Horizontal ScrollView on Android 1. Create a test application with a FlatList with horizontal={true} inverted={true}. 2. Fill it with data 3. Scroll and release your finger Pull Request resolved: #23233 Differential Revision: D13915911 Pulled By: cpojer fbshipit-source-id: d32c82e6d9076f5ffdf342fcd71bd921e9c8a97b
Summary: ScrollView (as well as FlatList) used with horizontal={true} and inverted={true} do not scroll as expected due to a known Android P bug. Fixes facebook#22710. This is pretty much a clone of PR facebook#21117, applied to a horizontal ScrollView. [Android] [Fixed] - Fix Inverted Horizontal ScrollView on Android 1. Create a test application with a FlatList with horizontal={true} inverted={true}. 2. Fill it with data 3. Scroll and release your finger Pull Request resolved: facebook#23233 Differential Revision: D13915911 Pulled By: cpojer fbshipit-source-id: d32c82e6d9076f5ffdf342fcd71bd921e9c8a97b
Environment
React Native Environment Info:
System:
OS: macOS 10.14.2
CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Memory: 2.24 GB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.11.4 - ~/.nvm/versions/node/v8.11.4/bin/node
Yarn: 1.10.1 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v8.11.4/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 26, 27, 28
Build Tools: 27.0.3, 28.0.2, 28.0.3
System Images: android-24 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: ^16.6.3 => 16.6.3
react-native: 0.58.0-rc.1 => 0.58.0-rc.1
npmGlobalPackages:
react-native-git-upgrade: 0.2.7
Description
When using Flatlist on Android (I try on android pie 9) and add "inverted" and "horizontal" and scrolling fast to the right (from start to end) - the Flatlist scroll back to the other side (to the left)
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve
The text was updated successfully, but these errors were encountered: