assets/javascripts/semantic_ui/definitions/behaviors/visibility.js in less-rails-semantic_ui-2.3.0.0 vs assets/javascripts/semantic_ui/definitions/behaviors/visibility.js in less-rails-semantic_ui-2.3.1.0

- old
+ new

@@ -8,11 +8,11 @@ * */ ;(function ($, window, document, undefined) { -"use strict"; +'use strict'; window = (typeof window != 'undefined' && window.Math == Math) ? window : (typeof self != 'undefined' && self.Math == Math) ? self @@ -931,10 +931,10 @@ element.bottomVisible = (screen.bottom >= element.bottom) && !element.bottomPassed; element.pixelsPassed = 0; element.percentagePassed = 0; // meta calculations - element.onScreen = (element.topVisible && !element.bottomPassed); + element.onScreen = ((element.topVisible || element.passing) && !element.bottomPassed); element.passing = (element.topPassed && !element.bottomPassed); element.offScreen = (!element.onScreen); // passing calculations if(element.passing) {