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

When overflow: hidden is used, manually setting scrollTop or scrollLeft can also normally update the elements in the window. #860

Open
2 tasks done
srackhall opened this issue Mar 2, 2024 · 0 comments

Comments

@srackhall
Copy link

Clear and concise description of the problem

When I try to use CSS’s overflow: hidden and control the scroll position through JavaScript’s scrollTop or scrollLeft, the scrolling behavior works as expected. However, the elements in the window do not update. The window still displays the previous DOM elements (i.e., the elements at the new position are not rendered correctly).

Note: When overflow: auto or overflow: scroll is used, everything works as expected. But this does not meet my requirement of setting the scroll position only through scrollTop or scrollLeft in the code.

Suggested solution

I’m not familiar with the implementation of this project, but if possible, I hope that when overflow: hidden is used, manually setting scrollTop or scrollLeft can also normally update the elements in the window.

Alternative

No response

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
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

1 participant