lightgallery 2.3.0-beta.3 → 2.3.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lg-settings.d.ts +2 -1
- package/lib/lg-settings.js +1 -1
- package/lib/lg-settings.js.map +1 -1
- package/lib/lgQuery.js +25 -18
- package/lib/lgQuery.js.map +1 -1
- package/lib/lightgallery.js +5 -4
- package/lib/lightgallery.js.map +1 -1
- package/lightgallery.es5.js +32 -24
- package/lightgallery.es5.js.map +1 -1
- package/lightgallery.min.js +2 -2
- package/lightgallery.umd.js +32 -24
- package/lightgallery.umd.js.map +1 -1
- package/lit/lightgallery.esm.js +2 -2
- package/lit/lightgallery.umd.js +2 -2
- package/package.json +1 -1
- package/plugins/autoplay/lg-autoplay.es5.js +1 -1
- package/plugins/autoplay/lg-autoplay.min.js +1 -1
- package/plugins/autoplay/lg-autoplay.umd.js +1 -1
- package/plugins/comment/lg-comment.es5.js +1 -1
- package/plugins/comment/lg-comment.min.js +1 -1
- package/plugins/comment/lg-comment.umd.js +1 -1
- package/plugins/fullscreen/lg-fullscreen.es5.js +1 -1
- package/plugins/fullscreen/lg-fullscreen.min.js +1 -1
- package/plugins/fullscreen/lg-fullscreen.umd.js +1 -1
- package/plugins/hash/lg-hash.es5.js +1 -1
- package/plugins/hash/lg-hash.min.js +1 -1
- package/plugins/hash/lg-hash.umd.js +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.es5.js +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.min.js +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.umd.js +1 -1
- package/plugins/pager/lg-pager.es5.js +1 -1
- package/plugins/pager/lg-pager.min.js +1 -1
- package/plugins/pager/lg-pager.umd.js +1 -1
- package/plugins/relativeCaption/lg-relative-caption.es5.js +1 -1
- package/plugins/relativeCaption/lg-relative-caption.min.js +1 -1
- package/plugins/relativeCaption/lg-relative-caption.umd.js +1 -1
- package/plugins/rotate/lg-rotate.es5.js +1 -1
- package/plugins/rotate/lg-rotate.min.js +1 -1
- package/plugins/rotate/lg-rotate.umd.js +1 -1
- package/plugins/share/lg-share.es5.js +1 -1
- package/plugins/share/lg-share.min.js +1 -1
- package/plugins/share/lg-share.umd.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.es5.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.min.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.umd.js +1 -1
- package/plugins/video/lg-video.es5.js +1 -1
- package/plugins/video/lg-video.min.js +1 -1
- package/plugins/video/lg-video.umd.js +1 -1
- package/plugins/zoom/lg-zoom.es5.js +1 -1
- package/plugins/zoom/lg-zoom.min.js +1 -1
- package/plugins/zoom/lg-zoom.umd.js +1 -1
- package/react/Lightgallery.es5.js +32 -24
- package/react/Lightgallery.es5.js.map +1 -1
- package/react/Lightgallery.umd.js +32 -24
- package/react/Lightgallery.umd.js.map +1 -1
- package/vue/LightGalleryVue.common.js +30 -25
- package/vue/LightGalleryVue.common.js.map +1 -1
- package/vue/LightGalleryVue.umd.js +30 -25
- package/vue/LightGalleryVue.umd.js.map +1 -1
- package/vue/LightGalleryVue.umd.min.js +2 -2
- package/vue/LightGalleryVue.umd.min.js.map +1 -1
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/*!
|
|
35
|
-
* lightgallery | 2.3.0-beta.
|
|
35
|
+
* lightgallery | 2.3.0-beta.4 | October 11th 2021
|
|
36
36
|
* http://www.lightgalleryjs.com/
|
|
37
37
|
* Copyright (c) 2020 Sachin Neravath;
|
|
38
38
|
* @license GPLv3
|
|
@@ -72,24 +72,30 @@
|
|
|
72
72
|
return r;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
75
|
+
function initLgPolyfills() {
|
|
76
|
+
(function () {
|
|
77
|
+
if (typeof window.CustomEvent === 'function')
|
|
78
|
+
return false;
|
|
79
|
+
function CustomEvent(event, params) {
|
|
80
|
+
params = params || {
|
|
81
|
+
bubbles: false,
|
|
82
|
+
cancelable: false,
|
|
83
|
+
detail: null,
|
|
84
|
+
};
|
|
85
|
+
var evt = document.createEvent('CustomEvent');
|
|
86
|
+
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
|
|
87
|
+
return evt;
|
|
88
|
+
}
|
|
89
|
+
window.CustomEvent = CustomEvent;
|
|
90
|
+
})();
|
|
91
|
+
(function () {
|
|
92
|
+
if (!Element.prototype.matches) {
|
|
93
|
+
Element.prototype.matches =
|
|
94
|
+
Element.prototype.msMatchesSelector ||
|
|
95
|
+
Element.prototype.webkitMatchesSelector;
|
|
96
|
+
}
|
|
97
|
+
})();
|
|
98
|
+
}
|
|
93
99
|
var lgQuery = /** @class */ (function () {
|
|
94
100
|
function lgQuery(selector) {
|
|
95
101
|
this.cssVenderPrefixes = [
|
|
@@ -435,6 +441,7 @@
|
|
|
435
441
|
return lgQuery;
|
|
436
442
|
}());
|
|
437
443
|
function $LG(selector) {
|
|
444
|
+
initLgPolyfills();
|
|
438
445
|
return new lgQuery(selector);
|
|
439
446
|
}
|
|
440
447
|
|
|
@@ -730,7 +737,7 @@
|
|
|
730
737
|
addClass: '',
|
|
731
738
|
startClass: 'lg-start-zoom',
|
|
732
739
|
backdropDuration: 300,
|
|
733
|
-
container:
|
|
740
|
+
container: '',
|
|
734
741
|
startAnimationDuration: 400,
|
|
735
742
|
zoomFromOrigin: true,
|
|
736
743
|
hideBarsDelay: 0,
|
|
@@ -2397,12 +2404,13 @@
|
|
|
2397
2404
|
return;
|
|
2398
2405
|
}
|
|
2399
2406
|
if (e.deltaY > 0) {
|
|
2400
|
-
_this.goToPrevSlide();
|
|
2401
|
-
}
|
|
2402
|
-
else {
|
|
2403
2407
|
_this.goToNextSlide();
|
|
2408
|
+
e.preventDefault();
|
|
2409
|
+
}
|
|
2410
|
+
else if (e.deltaY < 0) {
|
|
2411
|
+
_this.goToPrevSlide();
|
|
2412
|
+
e.preventDefault();
|
|
2404
2413
|
}
|
|
2405
|
-
e.preventDefault();
|
|
2406
2414
|
});
|
|
2407
2415
|
};
|
|
2408
2416
|
LightGallery.prototype.isSlideElement = function (target) {
|