Skip to content

Commit

Permalink
overlayscrollbars v1.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
KingSora committed Jun 1, 2022
1 parent 446180d commit 3e12bae
Show file tree
Hide file tree
Showing 6 changed files with 7,886 additions and 3,484 deletions.
11 changes: 9 additions & 2 deletions js/OverlayScrollbars.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars
*
* Version: 1.13.0
* Version: 1.13.2
*
* Copyright KingSora | Rene Haas.
* https://github.com/KingSora
*
* Released under the MIT license.
* Date: 02.08.2020
* Date: 01.06.2022
*/

(function (global, factory) {
Expand Down Expand Up @@ -2812,7 +2812,12 @@
* A callback which will be called after a element has loaded.
*/
function updateOnLoadCallback(event) {
var target = event.target;
var elm = FRAMEWORK(event.target);
var index = FRAMEWORK.inArray(target, _updateOnLoadElms);
if (index > -1) {
_updateOnLoadElms.splice(index, 1);
}

eachUpdateOnLoad(function (i, updateOnLoadSelector) {
if (elm.is(updateOnLoadSelector)) {
Expand Down Expand Up @@ -6416,13 +6421,15 @@

//check if the plugin hasn't to be initialized
if (_nativeScrollbarIsOverlaid.x && _nativeScrollbarIsOverlaid.y && !_currentPreparedOptions.nativeScrollbarsOverlaid.initialize) {
_initialized = true; // workaround so the onInitializationWithdrawn callback below is fired
dispatchCallback('onInitializationWithdrawn');
if (_domExists) {
setupStructureDOM(true);
setupScrollbarsDOM(true);
setupScrollbarCornerDOM(true);
}

_initialized = false;
_destroyed = true;
_sleeping = true;

Expand Down
6 changes: 3 additions & 3 deletions js/OverlayScrollbars.min.js

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions js/jquery.overlayScrollbars.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars
*
* Version: 1.13.0
* Version: 1.13.2
*
* Copyright KingSora | Rene Haas.
* https://github.com/KingSora
*
* Released under the MIT license.
* Date: 02.08.2020
* Date: 01.06.2022
*/

(function (global, factory) {
Expand Down Expand Up @@ -1729,7 +1729,12 @@
* A callback which will be called after a element has loaded.
*/
function updateOnLoadCallback(event) {
var target = event.target;
var elm = FRAMEWORK(event.target);
var index = FRAMEWORK.inArray(target, _updateOnLoadElms);
if (index > -1) {
_updateOnLoadElms.splice(index, 1);
}

eachUpdateOnLoad(function (i, updateOnLoadSelector) {
if (elm.is(updateOnLoadSelector)) {
Expand Down Expand Up @@ -5333,13 +5338,15 @@

//check if the plugin hasn't to be initialized
if (_nativeScrollbarIsOverlaid.x && _nativeScrollbarIsOverlaid.y && !_currentPreparedOptions.nativeScrollbarsOverlaid.initialize) {
_initialized = true; // workaround so the onInitializationWithdrawn callback below is fired
dispatchCallback('onInitializationWithdrawn');
if (_domExists) {
setupStructureDOM(true);
setupScrollbarsDOM(true);
setupScrollbarCornerDOM(true);
}

_initialized = false;
_destroyed = true;
_sleeping = true;

Expand Down
6 changes: 3 additions & 3 deletions js/jquery.overlayScrollbars.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 3e12bae

Please sign in to comment.