Skip to content
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

Flickering on reverse scrolling when items have wide range of sizes in desktop Safari #362

Open
inokawa opened this issue Feb 4, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@inokawa
Copy link
Owner

inokawa commented Feb 4, 2024

As far as I researched, Safari seems to have 2 tricky behavior (maybe a kind of bug?):

  1. Imperative scrollTop update during scrolling sometimes delays. For example, setting scrollTop += 1000 will usually affect the next scroll event, however sometimes not next but after the next in Safari.
  2. Imperative scrollTop update during scrolling sometimes delays browser's paint. That means updated items range may not be painted immediately and can cause blank.

Originally posted by @inokawa in #261 (comment)

@LookRain
Copy link

hi @inokawa just checking, have you been able to think of a solution to this problem? I think this is a common problem faced by other virtual scrollers like react-virtuoso..

@inokawa
Copy link
Owner Author

inokawa commented Apr 17, 2024

It's probably fixable by detecting desktop Safari by user agent and patching it. Previously I was looking for a more general solution, but it didn't work that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants