-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[v3] Mobile and other improvements #1237
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
document.head.appendChild(styleTag) | ||
} | ||
|
||
private onScrollUnlock() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you will go back to the top of the page if you scroll > then open modal > then close again
Could we set the body scrollTop
when closing the modal?
document.body.style.top = ${window.scrollY}px;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need, this works as expected (same implementation as v2) you stay at the same position
Changes