0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-12 00:08:59 +01:00
Bootstrap/js/tests/unit
Rob Ruana 5eddb0b0fd Closes #21055: Prevents ScrollSpy from clearing active item when Safari rubberbands (#21056)
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 #21055 by verifying the first scrollspy target is
not at the top of the page before clearing the active nav-item.
2016-11-27 16:20:33 -08:00
..
alert.js Make JS compliant with the new ESLint rules. 2016-11-24 11:59:55 +11:00
button.js Merge pull request #18900 from vlastikcz/v4-dev-buttonChange 2016-11-26 01:18:21 -08:00
carousel.js Merge pull request #19058 from Johann-S/carouselInput 2016-11-26 01:14:55 -08:00
collapse.js Make JS compliant with the new ESLint rules. 2016-11-24 11:59:55 +11:00
dropdown.js Make JS compliant with the new ESLint rules. 2016-11-24 11:59:55 +11:00
modal.js Merge branch 'v4-dev-18796' of https://github.com/maxbeatty/bootstrap into maxbeatty-v4-dev-18796 2016-11-26 00:58:51 -08:00
phantom.js Make JS compliant with the new ESLint rules. 2016-11-24 11:59:55 +11:00
popover.js Make JS compliant with the new ESLint rules. 2016-11-24 11:59:55 +11:00
scrollspy.js Closes #21055: Prevents ScrollSpy from clearing active item when Safari rubberbands (#21056) 2016-11-27 16:20:33 -08:00
tab.js Merge branch 'eslint' of https://github.com/bardiharborow/bootstrap into bardiharborow-eslint 2016-11-25 14:59:28 -08:00
tooltip.js Make JS compliant with the new ESLint rules. 2016-11-24 11:59:55 +11:00