0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Bootstrap/js
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
..
dist grunt 2016-11-26 19:17:23 -08:00
src Closes #21055: Prevents ScrollSpy from clearing active item when Safari rubberbands (#21056) 2016-11-27 16:20:33 -08:00
tests Closes #21055: Prevents ScrollSpy from clearing active item when Safari rubberbands (#21056) 2016-11-27 16:20:33 -08:00
.babelrc Update dependencies, including Babel to v6 and zeroUnits fix. 2016-10-09 12:15:17 +11:00
.eslintrc.json Refactor ESLint configuration. 2016-11-24 11:59:55 +11:00
.jscsrc Upgrade to latest version of JSCS (v3.0.4) (#20070) 2016-06-04 17:55:21 -07:00