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
|
@@ -5915,28 +5915,30 @@ var es_regexp_to_string = __webpack_require__("25f0");
|
|
|
5915
5915
|
|
|
5916
5916
|
|
|
5917
5917
|
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5918
|
+
function initLgPolyfills() {
|
|
5919
|
+
(function () {
|
|
5920
|
+
if (typeof window.CustomEvent === 'function') return false;
|
|
5921
|
+
|
|
5922
|
+
function CustomEvent(event, params) {
|
|
5923
|
+
params = params || {
|
|
5924
|
+
bubbles: false,
|
|
5925
|
+
cancelable: false,
|
|
5926
|
+
detail: null
|
|
5927
|
+
};
|
|
5928
|
+
var evt = document.createEvent('CustomEvent');
|
|
5929
|
+
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
|
|
5930
|
+
return evt;
|
|
5931
|
+
}
|
|
5931
5932
|
|
|
5932
|
-
|
|
5933
|
-
})();
|
|
5933
|
+
window.CustomEvent = CustomEvent;
|
|
5934
|
+
})();
|
|
5934
5935
|
|
|
5935
|
-
(function () {
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
})();
|
|
5936
|
+
(function () {
|
|
5937
|
+
if (!Element.prototype.matches) {
|
|
5938
|
+
Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
5939
|
+
}
|
|
5940
|
+
})();
|
|
5941
|
+
}
|
|
5940
5942
|
|
|
5941
5943
|
var lgQuery_lgQuery = /*#__PURE__*/function () {
|
|
5942
5944
|
function lgQuery(selector) {
|
|
@@ -6377,6 +6379,7 @@ var lgQuery_lgQuery = /*#__PURE__*/function () {
|
|
|
6377
6379
|
}();
|
|
6378
6380
|
lgQuery_lgQuery.eventListeners = {};
|
|
6379
6381
|
function $LG(selector) {
|
|
6382
|
+
initLgPolyfills();
|
|
6380
6383
|
return new lgQuery_lgQuery(selector);
|
|
6381
6384
|
}
|
|
6382
6385
|
// CONCATENATED MODULE: ../src/lg-utils.ts
|
|
@@ -6674,7 +6677,7 @@ var lightGalleryCoreSettings = {
|
|
|
6674
6677
|
addClass: '',
|
|
6675
6678
|
startClass: 'lg-start-zoom',
|
|
6676
6679
|
backdropDuration: 300,
|
|
6677
|
-
container:
|
|
6680
|
+
container: '',
|
|
6678
6681
|
startAnimationDuration: 400,
|
|
6679
6682
|
zoomFromOrigin: true,
|
|
6680
6683
|
hideBarsDelay: 0,
|
|
@@ -8554,12 +8557,14 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
8554
8557
|
}
|
|
8555
8558
|
|
|
8556
8559
|
if (e.deltaY > 0) {
|
|
8557
|
-
_this23.goToPrevSlide();
|
|
8558
|
-
} else {
|
|
8559
8560
|
_this23.goToNextSlide();
|
|
8560
|
-
}
|
|
8561
8561
|
|
|
8562
|
-
|
|
8562
|
+
e.preventDefault();
|
|
8563
|
+
} else if (e.deltaY < 0) {
|
|
8564
|
+
_this23.goToPrevSlide();
|
|
8565
|
+
|
|
8566
|
+
e.preventDefault();
|
|
8567
|
+
}
|
|
8563
8568
|
});
|
|
8564
8569
|
}
|
|
8565
8570
|
}, {
|