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
Let's say we've got a fixed navbar at 60px height. Is there an easy way to pass in / factor in that 60px offset for scroll position calculations? For example, if we try to scroll to the top of an element, with a fixed navbar at the top of the screen, the top part of the element will be covered the navbar.
The text was updated successfully, but these errors were encountered:
OK. I have found this way. We can set scroll-margin-top: 60px in style. This is a new feature in #1197 .But it didn't be written into README yet. It worked on scroll-into-view-if-needed@^3.1.0 or smooth-scroll-into-view-if-needed@^2.0.2 by my test.
Let's say we've got a fixed navbar at 60px height. Is there an easy way to pass in / factor in that 60px offset for scroll position calculations? For example, if we try to scroll to the top of an element, with a fixed navbar at the top of the screen, the top part of the element will be covered the navbar.
The text was updated successfully, but these errors were encountered: