Skip to content
Browse files

fix 1 px difference in element coming into view before activated

  • Loading branch information...
1 parent 0d94bff commit 27c751f48944ec362de46bd0ac7b7e79b5167846 @DimitarChristoff committed Feb 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/moostrap-scrollspy.js
View
4 Source/moostrap-scrollspy.js
@@ -83,8 +83,8 @@ provides: moostrapScrollspy
Array.some(this.elements, function(el, i){
var y = el.getPosition(relativeTo).y;
- if (y < top) index = i;
- return y >= top;
+ if (y <= top) index = i;
+ return y > top;
});
if (index != this.active){

0 comments on commit 27c751f

Please sign in to comment.
Something went wrong with that request. Please try again.