1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-30 23:36:47 +02:00

Fixed proper navigation element selection on backward scrolling (from the bottom to the top)

This commit is contained in:
Maxim Andrukhovych
2015-03-10 20:04:15 +00:00
parent 9d0259d8d1
commit 83371735fc
2 changed files with 47 additions and 1 deletions

View File

@@ -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])
}
}