vendor/assets/javascripts/uikit/core/scrollspy.js in uikit2-rails-0.1.7 vs vendor/assets/javascripts/uikit/core/scrollspy.js in uikit2-rails-0.1.8
- old
+ new
@@ -1,6 +1,6 @@
-/*! UIkit 2.26.1 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
+/*! UIkit 2.26.2 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(UI) {
"use strict";
var $win = UI.$win,
@@ -169,10 +169,10 @@
var navitems,
scrollTop = $win.scrollTop(),
target = (function(){
for(var i=0; i< inviews.length;i++){
- if(inviews[i].offset().top + inviews[i].outerHeight() >= scrollTop){
+ if(inviews[i].offset().top >= scrollTop){
return inviews[i];
}
}
})();