diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index f16cdafcc..5da458227 100755 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -5,6 +5,7 @@ **Bugs** - **Icons** - Fixes some icons that were incorrectly named. **Thanks hammy2899** [#6181](https://github.com/Semantic-Org/Semantic-UI/pull/6181) [#6180](https://github.com/Semantic-Org/Semantic-UI/pull/6180) [#6176](https://github.com/Semantic-Org/Semantic-UI/pull/6176) [#6175](https://github.com/Semantic-Org/Semantic-UI/pull/6175) - **Icons** - Increased specifity on `fitted icon` to fix compatibility with other components [#6125](https://github.com/Semantic-Org/Semantic-UI/issues/6125) +- **Visibility** - Fixed bug that could cause `onScreen` to not work properly for elements that are longer than screen. **Docs** - Fixes CDN links in docs **Thanks @KSH-code** diff --git a/src/definitions/behaviors/visibility.js b/src/definitions/behaviors/visibility.js old mode 100644 new mode 100755 index d5ab6c27b..789e6ddc7 --- a/src/definitions/behaviors/visibility.js +++ b/src/definitions/behaviors/visibility.js @@ -933,7 +933,7 @@ $.fn.visibility = function(parameters) { 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);