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
ScrollSpy clears active nav-item on Safari when rubber-band scrolling past the top of page. If the first ScrollSpy target is at the very top of the page, the active nav-item that links to it will be cleared when the rubber-band effect pulls the page past the top.
…Safari rubberbands
When the rubberband effect causes Safari to scroll past the top of the
page, the value of scrollTop becomes negative. If the offset of the first
ScrollSpy target is 0 - essentially if the target is at the top of the
page - then ScrollSpy should not clear the active item. Conceptually, the
first item should remain active when rubberbanding past the top of the
page.
This commit fixes issue twbs#21055 by verifying the first scrollspy target is
not at the top of the page before clearing the active nav-item.
ScrollSpy clears active nav-item on Safari when rubber-band scrolling past
the top of page. If the first ScrollSpy target is at the very top of the
page, the active nav-item that links to it will be cleared when the
rubber-band effect pulls the page past the top.
ScrollSpy clears active nav-item on Safari when rubber-band scrolling past the top of page. If the first ScrollSpy target is at the very top of the page, the active nav-item that links to it will be cleared when the rubber-band effect pulls the page past the top.
JS Bin test case
Issue is a regression introduced by: e8af21c
Issue has been reproduced on:
The text was updated successfully, but these errors were encountered: