-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Mobile - Grid is flickering on horizontal scrolling #955
Comments
@bvaughn I saw similar with new grid on vertical scrolling too. |
"new grid" ? |
I see same effect but on plain vertical list with large amount of images. I should even say than more images are in viewport then more notable that effect. Also, FYI it never sets to |
Look into this: #566
But our issue looks same. And it can be watched in the middle of the list. It means fix of @toddtarsi was wrong. He just disabled list updates on |
What is even more interesting. This issue can be notable more when |
The issue I was concerned with was the iOS rubberband scrolling colliding with react virtualized. I believe scrolling in the rubber band region on iOS (that little bit when you drag the top of the scroll area and it slides down slightly) would attempt to reset the value to 0 from react virtualized, leading to a flicker as it jumps back and forth between where it is, the rubber band region, and where it thinks it is, row 0. For my issue, being that single column lists were flickering in the rubber band region on iOS, the resolution served my needs well enough. Then, later on, I believe this code was walked back out of the codebase. The PR has some more context that may benefit you @GulinSS. |
My issue was about iOS 10 and 11. |
@GulinSS I have the same issue, I have a large list that also displays images it flickers when I allow images to load, I also noticed that when I dont allow images to load scroll works fine... I'll create a gif and attach it as soon as I can |
I'm noticing the same issue for vertical grid here, also displaying images. |
I had a similar issue with a data grid. I spent 3 days debugging and didn't find any coding or scroll event errors with the grid code. In my scenario, the flickering was caused by the bouncing of of the scrolling view. In my project, I am using Cordova and an inappbrowser, so I have control over the webview and scroll view elements. I was able to manually disable bouncing on all scroll views, which fixed my problem perfectly. Unfortunately, I am not sure that there is a way to disable this within the standard chrome/safari browser...I tried quite a few things. For the solution that I used, see the post by daansystems here: ionic-team/ionic-v3#113 I suspect that the bug lies somewhere within the iOS Webkit code and handling of the scroll bouncing events, but it is unclear. Disabling the bouncing on the scroll view at the wkwebview level does fixes the problem and produces a nice scrolling solution. |
When using react-virtualized Grid on iphone (both Safari and Chrome), there is an issue with
horizontal scrolling.
You can have a look on the issue here:
https://www.youtube.com/watch?v=087MM98zF28
It seems that during one of the touch events, the list left offset is set to 0 when it's actually higher, which make the grid flicker.
The text was updated successfully, but these errors were encountered: