You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a more complex imperative smooth scroll is needed, then there are many hook libraries having this functionality (example). Underneath they are typically using something like this, if need to scroll to element's ref:
Context
This was first installed as a NPM dependency then vendored in ab6baf8. It's caused some problems such as #882 and there may be better alternatives.
Potential alternatives
From @ivan-aksamentov in #882 (comment):
For a proper smooth scrolling in modern browsers, I believe that
<div id="#foo" />
+<Link href="#foo"/>
(or<a href="#foo"/>
) + some global CSS:(moz, caniuse)
should do without any packages.
If a more complex imperative smooth scroll is needed, then there are many hook libraries having this functionality (example). Underneath they are typically using something like this, if need to scroll to element's ref:
or, if need to scroll to coordinates:
The text was updated successfully, but these errors were encountered: