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

Scroll position is lost #50

Open
zhang1024899756 opened this issue Dec 30, 2020 · 0 comments
Open

Scroll position is lost #50

zhang1024899756 opened this issue Dec 30, 2020 · 0 comments

Comments

@zhang1024899756
Copy link

zhang1024899756 commented Dec 30, 2020

When the contents of a wrapped element overflow, the scroll position is lost. How do you handle this? There are unfriendly flashes when using Scrolltop
const scrollbar= document.getElementsByClassName('scrollbar')[0];
const scrollTop = scrollbar.scrollTop
if (scrollTop ) { setTimeout(() => { scrollTop .scrollTop = scrollTop }, 0) }
There are unfriendly flashes when using Scrolltop

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