overlayscrollbars v1.13.2

This commit is contained in:
Rene
2022-06-01 15:03:09 +02:00
parent 446180d1cc
commit 3e12bae9fc
6 changed files with 7899 additions and 3497 deletions
+9 -2
View File
@@ -2,13 +2,13 @@
* OverlayScrollbars * OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars
* *
* Version: 1.13.0 * Version: 1.13.2
* *
* Copyright KingSora | Rene Haas. * Copyright KingSora | Rene Haas.
* https://github.com/KingSora * https://github.com/KingSora
* *
* Released under the MIT license. * Released under the MIT license.
* Date: 02.08.2020 * Date: 01.06.2022
*/ */
(function (global, factory) { (function (global, factory) {
@@ -2812,7 +2812,12 @@
* A callback which will be called after a element has loaded. * A callback which will be called after a element has loaded.
*/ */
function updateOnLoadCallback(event) { function updateOnLoadCallback(event) {
var target = event.target;
var elm = FRAMEWORK(event.target); var elm = FRAMEWORK(event.target);
var index = FRAMEWORK.inArray(target, _updateOnLoadElms);
if (index > -1) {
_updateOnLoadElms.splice(index, 1);
}
eachUpdateOnLoad(function (i, updateOnLoadSelector) { eachUpdateOnLoad(function (i, updateOnLoadSelector) {
if (elm.is(updateOnLoadSelector)) { if (elm.is(updateOnLoadSelector)) {
@@ -6416,6 +6421,7 @@
//check if the plugin hasn't to be initialized //check if the plugin hasn't to be initialized
if (_nativeScrollbarIsOverlaid.x && _nativeScrollbarIsOverlaid.y && !_currentPreparedOptions.nativeScrollbarsOverlaid.initialize) { if (_nativeScrollbarIsOverlaid.x && _nativeScrollbarIsOverlaid.y && !_currentPreparedOptions.nativeScrollbarsOverlaid.initialize) {
_initialized = true; // workaround so the onInitializationWithdrawn callback below is fired
dispatchCallback('onInitializationWithdrawn'); dispatchCallback('onInitializationWithdrawn');
if (_domExists) { if (_domExists) {
setupStructureDOM(true); setupStructureDOM(true);
@@ -6423,6 +6429,7 @@
setupScrollbarCornerDOM(true); setupScrollbarCornerDOM(true);
} }
_initialized = false;
_destroyed = true; _destroyed = true;
_sleeping = true; _sleeping = true;
+3 -3
View File
File diff suppressed because one or more lines are too long
+9 -2
View File
@@ -2,13 +2,13 @@
* OverlayScrollbars * OverlayScrollbars
* https://github.com/KingSora/OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars
* *
* Version: 1.13.0 * Version: 1.13.2
* *
* Copyright KingSora | Rene Haas. * Copyright KingSora | Rene Haas.
* https://github.com/KingSora * https://github.com/KingSora
* *
* Released under the MIT license. * Released under the MIT license.
* Date: 02.08.2020 * Date: 01.06.2022
*/ */
(function (global, factory) { (function (global, factory) {
@@ -1729,7 +1729,12 @@
* A callback which will be called after a element has loaded. * A callback which will be called after a element has loaded.
*/ */
function updateOnLoadCallback(event) { function updateOnLoadCallback(event) {
var target = event.target;
var elm = FRAMEWORK(event.target); var elm = FRAMEWORK(event.target);
var index = FRAMEWORK.inArray(target, _updateOnLoadElms);
if (index > -1) {
_updateOnLoadElms.splice(index, 1);
}
eachUpdateOnLoad(function (i, updateOnLoadSelector) { eachUpdateOnLoad(function (i, updateOnLoadSelector) {
if (elm.is(updateOnLoadSelector)) { if (elm.is(updateOnLoadSelector)) {
@@ -5333,6 +5338,7 @@
//check if the plugin hasn't to be initialized //check if the plugin hasn't to be initialized
if (_nativeScrollbarIsOverlaid.x && _nativeScrollbarIsOverlaid.y && !_currentPreparedOptions.nativeScrollbarsOverlaid.initialize) { if (_nativeScrollbarIsOverlaid.x && _nativeScrollbarIsOverlaid.y && !_currentPreparedOptions.nativeScrollbarsOverlaid.initialize) {
_initialized = true; // workaround so the onInitializationWithdrawn callback below is fired
dispatchCallback('onInitializationWithdrawn'); dispatchCallback('onInitializationWithdrawn');
if (_domExists) { if (_domExists) {
setupStructureDOM(true); setupStructureDOM(true);
@@ -5340,6 +5346,7 @@
setupScrollbarCornerDOM(true); setupScrollbarCornerDOM(true);
} }
_initialized = false;
_destroyed = true; _destroyed = true;
_sleeping = true; _sleeping = true;
+3 -3
View File
File diff suppressed because one or more lines are too long
+7874 -3486
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "overlayscrollbars", "name": "overlayscrollbars",
"version": "1.13.1", "version": "1.13.2",
"description": "A javascript scrollbar plugin which hides native scrollbars, provides custom styleable overlay scrollbars and keeps the native functionality and feeling.", "description": "A javascript scrollbar plugin which hides native scrollbars, provides custom styleable overlay scrollbars and keeps the native functionality and feeling.",
"keywords": [ "keywords": [
"overlayscrollbars", "overlayscrollbars",