vendor/assets/javascripts/scrollspy.js in active_frontend-1.0.11 vs vendor/assets/javascripts/scrollspy.js in active_frontend-2.0.0

- old
+ new

@@ -17,11 +17,11 @@ this.$scrollElement.on('scroll.bs.scrollspy', $.proxy(this.process, this)) this.refresh() this.process() } - ScrollSpy.VERSION = '3.3.2' + ScrollSpy.VERSION = '3.3.4' ScrollSpy.DEFAULTS = { offset: 10 } @@ -85,10 +85,10 @@ } 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]) } } ScrollSpy.prototype.activate = function (target) { \ No newline at end of file