lightgallery 2.5.0 → 2.6.0
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/README.md +1 -1
- package/css/lg-rotate.css +7 -0
- package/css/lg-zoom.css +37 -5
- package/css/lightgallery-bundle.css +45 -6
- package/css/lightgallery-bundle.min.css +1 -1
- package/css/lightgallery.css +1 -1
- package/lib/lightgallery.js +21 -16
- package/lib/lightgallery.js.map +1 -1
- package/lib/plugins/rotate/lg-rotate.js +15 -8
- package/lib/plugins/rotate/lg-rotate.js.map +1 -1
- package/lib/plugins/thumbnail/lg-thumbnail-settings.js.map +1 -1
- package/lib/plugins/zoom/lg-zoom.js +281 -293
- package/lib/plugins/zoom/lg-zoom.js.map +1 -1
- package/lightgallery.d.ts +1 -0
- package/lightgallery.es5.js +22 -17
- package/lightgallery.es5.js.map +1 -1
- package/lightgallery.min.js +2 -2
- package/lightgallery.umd.js +22 -17
- 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 +16 -9
- package/plugins/rotate/lg-rotate.es5.js.map +1 -1
- package/plugins/rotate/lg-rotate.min.js +2 -2
- package/plugins/rotate/lg-rotate.umd.js +16 -9
- package/plugins/rotate/lg-rotate.umd.js.map +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-settings.d.ts +2 -1
- package/plugins/thumbnail/lg-thumbnail.es5.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.es5.js.map +1 -1
- package/plugins/thumbnail/lg-thumbnail.min.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.umd.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.umd.js.map +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/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +1 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +1 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +1 -1
- package/plugins/zoom/lg-zoom.d.ts +12 -23
- package/plugins/zoom/lg-zoom.es5.js +282 -294
- package/plugins/zoom/lg-zoom.es5.js.map +1 -1
- package/plugins/zoom/lg-zoom.min.js +2 -2
- package/plugins/zoom/lg-zoom.umd.js +282 -294
- package/plugins/zoom/lg-zoom.umd.js.map +1 -1
- package/react/Lightgallery.es5.js +23 -18
- package/react/Lightgallery.es5.js.map +1 -1
- package/react/Lightgallery.umd.js +23 -18
- package/react/Lightgallery.umd.js.map +1 -1
- package/scss/_lg-variables.scss +1 -1
- package/scss/lg-rotate.scss +8 -0
- package/scss/lg-zoom.scss +29 -2
- package/vue/LightGalleryVue.common.js +24 -19
- package/vue/LightGalleryVue.common.js.map +1 -1
- package/vue/LightGalleryVue.umd.js +24 -19
- package/vue/LightGalleryVue.umd.js.map +1 -1
- package/vue/LightGalleryVue.umd.min.js +1 -1
- package/vue/LightGalleryVue.umd.min.js.map +1 -1
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/*!
|
|
35
|
-
* lightgallery | 2.
|
|
35
|
+
* lightgallery | 2.6.0 | August 29th 2022
|
|
36
36
|
* http://www.lightgalleryjs.com/
|
|
37
37
|
* Copyright (c) 2020 Sachin Neravath;
|
|
38
38
|
* @license GPLv3
|
|
@@ -2179,23 +2179,23 @@
|
|
|
2179
2179
|
$item.get().contains(e.target)) &&
|
|
2180
2180
|
!_this.outer.hasClass('lg-zoomed') &&
|
|
2181
2181
|
!_this.lgBusy &&
|
|
2182
|
-
e.
|
|
2182
|
+
e.touches.length === 1) {
|
|
2183
2183
|
isSwiping = true;
|
|
2184
2184
|
_this.touchAction = 'swipe';
|
|
2185
2185
|
_this.manageSwipeClass();
|
|
2186
2186
|
startCoords = {
|
|
2187
|
-
pageX: e.
|
|
2188
|
-
pageY: e.
|
|
2187
|
+
pageX: e.touches[0].pageX,
|
|
2188
|
+
pageY: e.touches[0].pageY,
|
|
2189
2189
|
};
|
|
2190
2190
|
}
|
|
2191
2191
|
});
|
|
2192
2192
|
this.$inner.on('touchmove.lg', function (e) {
|
|
2193
2193
|
if (isSwiping &&
|
|
2194
2194
|
_this.touchAction === 'swipe' &&
|
|
2195
|
-
e.
|
|
2195
|
+
e.touches.length === 1) {
|
|
2196
2196
|
endCoords = {
|
|
2197
|
-
pageX: e.
|
|
2198
|
-
pageY: e.
|
|
2197
|
+
pageX: e.touches[0].pageX,
|
|
2198
|
+
pageY: e.touches[0].pageY,
|
|
2199
2199
|
};
|
|
2200
2200
|
_this.touchMove(startCoords, endCoords, e);
|
|
2201
2201
|
isMoved = true;
|
|
@@ -2720,6 +2720,15 @@
|
|
|
2720
2720
|
this.updateCounterTotal();
|
|
2721
2721
|
this.manageSingleSlideClassName();
|
|
2722
2722
|
};
|
|
2723
|
+
LightGallery.prototype.destroyGallery = function () {
|
|
2724
|
+
this.destroyModules(true);
|
|
2725
|
+
if (!this.settings.dynamic) {
|
|
2726
|
+
this.invalidateItems();
|
|
2727
|
+
}
|
|
2728
|
+
$LG(window).off(".lg.global" + this.lgId);
|
|
2729
|
+
this.LGel.off('.lg');
|
|
2730
|
+
this.$container.remove();
|
|
2731
|
+
};
|
|
2723
2732
|
/**
|
|
2724
2733
|
* Destroy lightGallery.
|
|
2725
2734
|
* Destroy lightGallery and its plugin instances completely
|
|
@@ -2734,17 +2743,13 @@
|
|
|
2734
2743
|
*
|
|
2735
2744
|
*/
|
|
2736
2745
|
LightGallery.prototype.destroy = function () {
|
|
2737
|
-
var _this = this;
|
|
2738
2746
|
var closeTimeout = this.closeGallery(true);
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
_this.LGel.off('.lg');
|
|
2746
|
-
_this.$container.remove();
|
|
2747
|
-
}, closeTimeout);
|
|
2747
|
+
if (closeTimeout) {
|
|
2748
|
+
setTimeout(this.destroyGallery.bind(this), closeTimeout);
|
|
2749
|
+
}
|
|
2750
|
+
else {
|
|
2751
|
+
this.destroyGallery();
|
|
2752
|
+
}
|
|
2748
2753
|
return closeTimeout;
|
|
2749
2754
|
};
|
|
2750
2755
|
return LightGallery;
|
|
@@ -2923,7 +2928,7 @@
|
|
|
2923
2928
|
return function cleanup() {
|
|
2924
2929
|
lightGallery$1.destroy();
|
|
2925
2930
|
};
|
|
2926
|
-
}, []);
|
|
2931
|
+
}, [registerEvents, restProps]);
|
|
2927
2932
|
return (React.createElement("div", { className: "lg-react-element " + (elementClassNames ? elementClassNames : ''), ref: $lg }, children));
|
|
2928
2933
|
};
|
|
2929
2934
|
|