diff options
| author | Maxim Andrukhovych <[email protected]> | 2015-03-10 20:04:15 +0000 |
|---|---|---|
| committer | Maxim Andrukhovych <[email protected]> | 2015-03-10 20:04:15 +0000 |
| commit | 83371735fcc4ceba3c1b35d91bb3ba8c41365861 (patch) | |
| tree | ebda3b8885baf30a7b4eff271f48468ba5d6d996 /js/scrollspy.js | |
| parent | 9d0259d8d142b6b1ae19436507155e46359cd7c5 (diff) | |
| download | bootstrap-83371735fcc4ceba3c1b35d91bb3ba8c41365861.tar.xz bootstrap-83371735fcc4ceba3c1b35d91bb3ba8c41365861.zip | |
Fixed proper navigation element selection on backward scrolling (from the bottom to the top)
Diffstat (limited to 'js/scrollspy.js')
| -rw-r--r-- | js/scrollspy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/scrollspy.js b/js/scrollspy.js index 9b29edf49..f2d9b5ab8 100644 --- a/js/scrollspy.js +++ b/js/scrollspy.js @@ -96,7 +96,7 @@ for (i = offsets.length; i--;) { activeTarget != targets[i] && scrollTop >= offsets[i] - && (offsets[i + 1] === undefined || scrollTop <= offsets[i + 1]) + && (offsets[i + 1] === undefined || scrollTop < offsets[i + 1]) && this.activate(targets[i]) } } |
