-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Scroll to bottom doesn't work correctly in inactive tab #450
Comments
It seems that ResizeObserver doesn't fire on non-active window in some browsers. Scheduled imperative scrolling waits for the resize events so timeout will happen. As a workaround, you may be able to wait for the tab to be active with |
I understand. I guessed that if I had ability to set the initial scroll position without extra render cycle, maybe it wouldn't need to wait for resize events and the problem would go away. |
A similar issue happens in safari if I switch pages back and forward by swiping. @inokawa do you have any idea why it can happen and how to fix it? Screen.Recording.2024-07-10.at.12.34.42.mov |
Thank you for the report! |
Fixed in |
Describe the bug
Scroll to bottom doesn't work correctly in inactive tab - video
To Reproduce
Result: list is not scrolled to the bottom
Expected behavior
Scroll to bottom works correctly in inactive tab
Platform:
The text was updated successfully, but these errors were encountered: