Skip to content

Commit

Permalink
Updated component to version 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Semantic-Pusher-Robot committed Mar 19, 2018
1 parent d6390dd commit 3b2dcc9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version 2.3.1 - Mar 19, 2018

- **Visibility** - Fixed bug that could cause `onScreen` callback to not occur properly for elements that are taller than screen.

### Version 2.2.14 - Jan 29, 2018

- **Visibility** - Fixes issue where `bottomPassed` and `topPassed` would not fire under some conditions
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"framework"
],
"license": "MIT",
"version": "2.3.0"
"version": "2.3.1"
}
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.3.0 - Visibility
* # Semantic UI 2.3.1 - Visibility
* https://github.com/semantic-org/semantic-ui/
*
*
Expand All @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down Expand Up @@ -934,7 +934,7 @@ module.exports = 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);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "semantic-ui-visibility",
"version": "2.3.0",
"version": "2.3.1",
"title": "Semantic UI - Visibility",
"description": "Single component release of visibility",
"homepage": "http://www.semantic-ui.com",
Expand Down
6 changes: 3 additions & 3 deletions visibility.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.3.0 - Visibility
* # Semantic UI 2.3.1 - Visibility
* https://github.com/semantic-org/semantic-ui/
*
*
Expand All @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion visibility.min.js

Large diffs are not rendered by default.

0 comments on commit 3b2dcc9

Please sign in to comment.