2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03: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
+1 -1
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])
}
}