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
{{ message }}
Repository navigation
Why is there a 20 offset for determining position? #213
In spy-api.js, the code for determining scrollspy offset has pos.top + spy.offset - containerOffset < 20
this means that the scrollspy activates before the element actually reaches the top of the page (or whatever offset was set. e.g. setting a 50 offset is effectively a 30).
Is there a particular reason for this?
Activity