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
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/*!
|
|
35
|
-
* lightgallery | 2.
|
|
35
|
+
* lightgallery | 2.6.0-beta.1 | July 13th 2022
|
|
36
36
|
* http://www.lightgalleryjs.com/
|
|
37
37
|
* Copyright (c) 2020 Sachin Neravath;
|
|
38
38
|
* @license GPLv3
|
|
@@ -1724,9 +1724,11 @@
|
|
|
1724
1724
|
if (!$currentSlide.hasClass('lg-loaded')) {
|
|
1725
1725
|
setTimeout(function () {
|
|
1726
1726
|
if (_this.getSlideType(currentGalleryItem) === 'image') {
|
|
1727
|
+
var alt = currentGalleryItem.alt;
|
|
1728
|
+
var altAttr = alt ? 'alt="' + alt + '"' : '';
|
|
1727
1729
|
$currentSlide
|
|
1728
1730
|
.find('.lg-img-wrap')
|
|
1729
|
-
.append(utils.getImgMarkup(index, src,
|
|
1731
|
+
.append(utils.getImgMarkup(index, src, altAttr, srcset, sizes, currentGalleryItem.sources));
|
|
1730
1732
|
if (srcset || sources) {
|
|
1731
1733
|
var $img = $currentSlide.find('.lg-object');
|
|
1732
1734
|
_this.initPictureFill($img);
|
|
@@ -2177,23 +2179,23 @@
|
|
|
2177
2179
|
$item.get().contains(e.target)) &&
|
|
2178
2180
|
!_this.outer.hasClass('lg-zoomed') &&
|
|
2179
2181
|
!_this.lgBusy &&
|
|
2180
|
-
e.
|
|
2182
|
+
e.touches.length === 1) {
|
|
2181
2183
|
isSwiping = true;
|
|
2182
2184
|
_this.touchAction = 'swipe';
|
|
2183
2185
|
_this.manageSwipeClass();
|
|
2184
2186
|
startCoords = {
|
|
2185
|
-
pageX: e.
|
|
2186
|
-
pageY: e.
|
|
2187
|
+
pageX: e.touches[0].pageX,
|
|
2188
|
+
pageY: e.touches[0].pageY,
|
|
2187
2189
|
};
|
|
2188
2190
|
}
|
|
2189
2191
|
});
|
|
2190
2192
|
this.$inner.on('touchmove.lg', function (e) {
|
|
2191
2193
|
if (isSwiping &&
|
|
2192
2194
|
_this.touchAction === 'swipe' &&
|
|
2193
|
-
e.
|
|
2195
|
+
e.touches.length === 1) {
|
|
2194
2196
|
endCoords = {
|
|
2195
|
-
pageX: e.
|
|
2196
|
-
pageY: e.
|
|
2197
|
+
pageX: e.touches[0].pageX,
|
|
2198
|
+
pageY: e.touches[0].pageY,
|
|
2197
2199
|
};
|
|
2198
2200
|
_this.touchMove(startCoords, endCoords, e);
|
|
2199
2201
|
isMoved = true;
|