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
|
@@ -8312,23 +8312,23 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
8312
8312
|
|
|
8313
8313
|
var $item = _this17.getSlideItem(_this17.index);
|
|
8314
8314
|
|
|
8315
|
-
if (($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) && !_this17.outer.hasClass('lg-zoomed') && !_this17.lgBusy && e.
|
|
8315
|
+
if (($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) && !_this17.outer.hasClass('lg-zoomed') && !_this17.lgBusy && e.touches.length === 1) {
|
|
8316
8316
|
isSwiping = true;
|
|
8317
8317
|
_this17.touchAction = 'swipe';
|
|
8318
8318
|
|
|
8319
8319
|
_this17.manageSwipeClass();
|
|
8320
8320
|
|
|
8321
8321
|
startCoords = {
|
|
8322
|
-
pageX: e.
|
|
8323
|
-
pageY: e.
|
|
8322
|
+
pageX: e.touches[0].pageX,
|
|
8323
|
+
pageY: e.touches[0].pageY
|
|
8324
8324
|
};
|
|
8325
8325
|
}
|
|
8326
8326
|
});
|
|
8327
8327
|
this.$inner.on('touchmove.lg', function (e) {
|
|
8328
|
-
if (isSwiping && _this17.touchAction === 'swipe' && e.
|
|
8328
|
+
if (isSwiping && _this17.touchAction === 'swipe' && e.touches.length === 1) {
|
|
8329
8329
|
endCoords = {
|
|
8330
|
-
pageX: e.
|
|
8331
|
-
pageY: e.
|
|
8330
|
+
pageX: e.touches[0].pageX,
|
|
8331
|
+
pageY: e.touches[0].pageY
|
|
8332
8332
|
};
|
|
8333
8333
|
|
|
8334
8334
|
_this17.touchMove(startCoords, endCoords, e);
|
|
@@ -8931,6 +8931,19 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
8931
8931
|
this.updateCounterTotal();
|
|
8932
8932
|
this.manageSingleSlideClassName();
|
|
8933
8933
|
}
|
|
8934
|
+
}, {
|
|
8935
|
+
key: "destroyGallery",
|
|
8936
|
+
value: function destroyGallery() {
|
|
8937
|
+
this.destroyModules(true);
|
|
8938
|
+
|
|
8939
|
+
if (!this.settings.dynamic) {
|
|
8940
|
+
this.invalidateItems();
|
|
8941
|
+
}
|
|
8942
|
+
|
|
8943
|
+
$LG(window).off(".lg.global".concat(this.lgId));
|
|
8944
|
+
this.LGel.off('.lg');
|
|
8945
|
+
this.$container.remove();
|
|
8946
|
+
}
|
|
8934
8947
|
/**
|
|
8935
8948
|
* Destroy lightGallery.
|
|
8936
8949
|
* Destroy lightGallery and its plugin instances completely
|
|
@@ -8948,22 +8961,14 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
8948
8961
|
}, {
|
|
8949
8962
|
key: "destroy",
|
|
8950
8963
|
value: function destroy() {
|
|
8951
|
-
var _this29 = this;
|
|
8952
|
-
|
|
8953
8964
|
var closeTimeout = this.closeGallery(true);
|
|
8954
|
-
setTimeout(function () {
|
|
8955
|
-
_this29.destroyModules(true);
|
|
8956
|
-
|
|
8957
|
-
if (!_this29.settings.dynamic) {
|
|
8958
|
-
_this29.invalidateItems();
|
|
8959
|
-
}
|
|
8960
8965
|
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8966
|
+
if (closeTimeout) {
|
|
8967
|
+
setTimeout(this.destroyGallery.bind(this), closeTimeout);
|
|
8968
|
+
} else {
|
|
8969
|
+
this.destroyGallery();
|
|
8970
|
+
}
|
|
8964
8971
|
|
|
8965
|
-
_this29.$container.remove();
|
|
8966
|
-
}, closeTimeout);
|
|
8967
8972
|
return closeTimeout;
|
|
8968
8973
|
}
|
|
8969
8974
|
}]);
|