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

Cannot calculate scrollTop in VUE IOS #403

Closed
leejaeho1809 opened this issue Mar 5, 2024 · 1 comment
Closed

Cannot calculate scrollTop in VUE IOS #403

leejaeho1809 opened this issue Mar 5, 2024 · 1 comment

Comments

@leejaeho1809
Copy link

Describe the bug
When I call up past chats using VList or Virtualizer and scroll up, the scrollTop appears to be 0 even though there are more actual elements, maybe because the IOS cannot calculate the scrollTop. And then, when the touch is stopped, the scrollTop is calculated again and the scrollTop is changed. This phenomenon only occurs on IOS Mobile and does not appear on AOS.
I think safeTop affects the calculation of scrollTop in IOS.

Expected behavior
Data with index number 1 should be shown when scrollTop is 0.

Platform:

  • OS: iOS
  • Browser: Safari
  • Version of this package: 0.28.0
  • Version of framework: vue 3.2.41
@inokawa
Copy link
Owner

inokawa commented Mar 5, 2024

Unfortunatelly, I think it's almost impossible to solve the problem because of limitation of iOS Safari.

iOS Safari prohibits updating scrollTop during momentum scrolling, so we have to shift position of items, that will sometimes exceed the scrollTop 0. If we don't shift items, we will see glitch while reverse scrolling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants