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
|
@@ -28,7 +28,7 @@ function __rest(s, e) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/*!
|
|
31
|
-
* lightgallery | 2.3.0-beta.
|
|
31
|
+
* lightgallery | 2.3.0-beta.4 | October 11th 2021
|
|
32
32
|
* http://www.lightgalleryjs.com/
|
|
33
33
|
* Copyright (c) 2020 Sachin Neravath;
|
|
34
34
|
* @license GPLv3
|
|
@@ -68,24 +68,30 @@ function __spreadArrays() {
|
|
|
68
68
|
return r;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
71
|
+
function initLgPolyfills() {
|
|
72
|
+
(function () {
|
|
73
|
+
if (typeof window.CustomEvent === 'function')
|
|
74
|
+
return false;
|
|
75
|
+
function CustomEvent(event, params) {
|
|
76
|
+
params = params || {
|
|
77
|
+
bubbles: false,
|
|
78
|
+
cancelable: false,
|
|
79
|
+
detail: null,
|
|
80
|
+
};
|
|
81
|
+
var evt = document.createEvent('CustomEvent');
|
|
82
|
+
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
|
|
83
|
+
return evt;
|
|
84
|
+
}
|
|
85
|
+
window.CustomEvent = CustomEvent;
|
|
86
|
+
})();
|
|
87
|
+
(function () {
|
|
88
|
+
if (!Element.prototype.matches) {
|
|
89
|
+
Element.prototype.matches =
|
|
90
|
+
Element.prototype.msMatchesSelector ||
|
|
91
|
+
Element.prototype.webkitMatchesSelector;
|
|
92
|
+
}
|
|
93
|
+
})();
|
|
94
|
+
}
|
|
89
95
|
var lgQuery = /** @class */ (function () {
|
|
90
96
|
function lgQuery(selector) {
|
|
91
97
|
this.cssVenderPrefixes = [
|
|
@@ -431,6 +437,7 @@ var lgQuery = /** @class */ (function () {
|
|
|
431
437
|
return lgQuery;
|
|
432
438
|
}());
|
|
433
439
|
function $LG(selector) {
|
|
440
|
+
initLgPolyfills();
|
|
434
441
|
return new lgQuery(selector);
|
|
435
442
|
}
|
|
436
443
|
|
|
@@ -726,7 +733,7 @@ var lightGalleryCoreSettings = {
|
|
|
726
733
|
addClass: '',
|
|
727
734
|
startClass: 'lg-start-zoom',
|
|
728
735
|
backdropDuration: 300,
|
|
729
|
-
container:
|
|
736
|
+
container: '',
|
|
730
737
|
startAnimationDuration: 400,
|
|
731
738
|
zoomFromOrigin: true,
|
|
732
739
|
hideBarsDelay: 0,
|
|
@@ -2393,12 +2400,13 @@ var LightGallery = /** @class */ (function () {
|
|
|
2393
2400
|
return;
|
|
2394
2401
|
}
|
|
2395
2402
|
if (e.deltaY > 0) {
|
|
2396
|
-
_this.goToPrevSlide();
|
|
2397
|
-
}
|
|
2398
|
-
else {
|
|
2399
2403
|
_this.goToNextSlide();
|
|
2404
|
+
e.preventDefault();
|
|
2405
|
+
}
|
|
2406
|
+
else if (e.deltaY < 0) {
|
|
2407
|
+
_this.goToPrevSlide();
|
|
2408
|
+
e.preventDefault();
|
|
2400
2409
|
}
|
|
2401
|
-
e.preventDefault();
|
|
2402
2410
|
});
|
|
2403
2411
|
};
|
|
2404
2412
|
LightGallery.prototype.isSlideElement = function (target) {
|