-
Notifications
You must be signed in to change notification settings - Fork 96
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
Flicker issue in Android while scrolling #39
Comments
I've seen this issue. I don't see a simple way to change this, the scroll logic may need to be changed to allow infinite scrolling, without limiting it to 5 pages. |
oh Ok thanks for your advice. |
Reopened the issue, let's find a way to improve this. |
If the forced scrolling was invisible (i.e. so fast it is not perceived by the user), I think this would be solved. Maybe calling |
If the above cannot be done, my proposal would be enabling infinite horizontal scrolling, opposed to rendering a fixed number of pages. This would be more robust, as pages that were rendered at some point would only be rendered once.
However, I'm not sure how to implement infinite scrolling to both sides at the same time without any glitches:
Final thought: infinite scrolling could be implemented to both sides, plus configuring to be either from (*) In this scenario, the forced scrolling would occur in two cases: (1) when the user scrolls to the other side; and (2) when the max amount of pages is reached, and pages from the other side start to get dropped |
Thanks a lot for your suggestions! I'm trying to implement infinite horizontal scrolling using |
Too bad. Maybe using What do you think about implementing infinite scroll to both sides, but favouring one side (left or right) for now? (i.e. glitches will only appear to one side). I think this could be done with either |
Let me try with About scrolling to just one side, I think it does not feel natural. I would choose this way as the last option. |
Sorry, I think I misexplained before. I meant scrolling to both sides infinitely, but choosing to arrange the pages from left to right (older to newer), or the other way around. For example, if choosing from left to right, the scrolling to the right will go fine and smooth, but when scrolling to the left the pages will get prepended, and there will be a flicker. In any case, the user can scroll to both sides infinitely. (I updated the previous comments to explain better 😅) |
Hello, i have the same problem here in Android, How can i fix this?? |
I understand what you meant, @pdpino, that makes sense! Seems we have to accept there will be a flicker on one side. It's the behaviour when I tried switching to infinite scroll, will raise the PR soon! |
I just merged this MR, #51, applying infinite horizontal scrolling. The flicker on one side is kind of annoying, but I think this is a better way to handle scrolling. Let see if we can fix the flicker on one side issue... |
Great! I agree that this is better way. In #52 I added the prop |
I think the definitive solution is to set the prop Sadly, is only implemented for iOS now, see this issue and this PR on the react-native repo. There is also a quick solution in this comment from the PR. We could implement that or wait for the PR to be merged (and pushed to a new react-native version, I guess) (I would still merge the #52 with the |
Hi, I am using your library its really great. Now I am facing 1 issue in Android when I scroll the events right or left the data is flickering but its working fine in iOS. Kindly find the attachment thank you.
flickering.mov.zip
The text was updated successfully, but these errors were encountered: