lightgallery 2.5.0-beta.4 → 2.6.0-beta.1
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/css/lg-rotate.css +7 -0
- package/css/lg-zoom.css +37 -5
- package/css/lightgallery-bundle.css +44 -5
- package/css/lightgallery-bundle.min.css +1 -1
- package/lg-settings.d.ts +4 -1
- package/lib/lg-settings.js.map +1 -1
- package/lib/lightgallery.js +9 -7
- 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/video/lg-video-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.es5.js +10 -8
- package/lightgallery.es5.js.map +1 -1
- package/lightgallery.min.js +2 -2
- package/lightgallery.umd.js +10 -8
- 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.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-settings.d.ts +1 -0
- package/plugins/video/lg-video.es5.js +1 -1
- package/plugins/video/lg-video.es5.js.map +1 -1
- package/plugins/video/lg-video.min.js +1 -1
- package/plugins/video/lg-video.umd.js +1 -1
- package/plugins/video/lg-video.umd.js.map +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 +10 -8
- package/react/Lightgallery.es5.js.map +1 -1
- package/react/Lightgallery.umd.js +10 -8
- package/react/Lightgallery.umd.js.map +1 -1
- package/scss/lg-rotate.scss +8 -0
- package/scss/lg-zoom.scss +29 -2
- package/vue/LightGalleryVue.common.js +9 -7
- package/vue/LightGalleryVue.common.js.map +1 -1
- package/vue/LightGalleryVue.umd.js +9 -7
- 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
|
@@ -7807,7 +7807,9 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
7807
7807
|
if (!$currentSlide.hasClass('lg-loaded')) {
|
|
7808
7808
|
setTimeout(function () {
|
|
7809
7809
|
if (_this10.getSlideType(currentGalleryItem) === 'image') {
|
|
7810
|
-
|
|
7810
|
+
var alt = currentGalleryItem.alt;
|
|
7811
|
+
var altAttr = alt ? 'alt="' + alt + '"' : '';
|
|
7812
|
+
$currentSlide.find('.lg-img-wrap').append(lg_utils.getImgMarkup(index, src, altAttr, srcset, sizes, currentGalleryItem.sources));
|
|
7811
7813
|
|
|
7812
7814
|
if (srcset || sources) {
|
|
7813
7815
|
var _$img = $currentSlide.find('.lg-object');
|
|
@@ -8310,23 +8312,23 @@ var lightgallery_LightGallery = /*#__PURE__*/function () {
|
|
|
8310
8312
|
|
|
8311
8313
|
var $item = _this17.getSlideItem(_this17.index);
|
|
8312
8314
|
|
|
8313
|
-
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) {
|
|
8314
8316
|
isSwiping = true;
|
|
8315
8317
|
_this17.touchAction = 'swipe';
|
|
8316
8318
|
|
|
8317
8319
|
_this17.manageSwipeClass();
|
|
8318
8320
|
|
|
8319
8321
|
startCoords = {
|
|
8320
|
-
pageX: e.
|
|
8321
|
-
pageY: e.
|
|
8322
|
+
pageX: e.touches[0].pageX,
|
|
8323
|
+
pageY: e.touches[0].pageY
|
|
8322
8324
|
};
|
|
8323
8325
|
}
|
|
8324
8326
|
});
|
|
8325
8327
|
this.$inner.on('touchmove.lg', function (e) {
|
|
8326
|
-
if (isSwiping && _this17.touchAction === 'swipe' && e.
|
|
8328
|
+
if (isSwiping && _this17.touchAction === 'swipe' && e.touches.length === 1) {
|
|
8327
8329
|
endCoords = {
|
|
8328
|
-
pageX: e.
|
|
8329
|
-
pageY: e.
|
|
8330
|
+
pageX: e.touches[0].pageX,
|
|
8331
|
+
pageY: e.touches[0].pageY
|
|
8330
8332
|
};
|
|
8331
8333
|
|
|
8332
8334
|
_this17.touchMove(startCoords, endCoords, e);
|