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.
Files changed (61) hide show
  1. package/lg-settings.d.ts +2 -1
  2. package/lib/lg-settings.js +1 -1
  3. package/lib/lg-settings.js.map +1 -1
  4. package/lib/lgQuery.js +25 -18
  5. package/lib/lgQuery.js.map +1 -1
  6. package/lib/lightgallery.js +5 -4
  7. package/lib/lightgallery.js.map +1 -1
  8. package/lightgallery.es5.js +32 -24
  9. package/lightgallery.es5.js.map +1 -1
  10. package/lightgallery.min.js +2 -2
  11. package/lightgallery.umd.js +32 -24
  12. package/lightgallery.umd.js.map +1 -1
  13. package/lit/lightgallery.esm.js +2 -2
  14. package/lit/lightgallery.umd.js +2 -2
  15. package/package.json +1 -1
  16. package/plugins/autoplay/lg-autoplay.es5.js +1 -1
  17. package/plugins/autoplay/lg-autoplay.min.js +1 -1
  18. package/plugins/autoplay/lg-autoplay.umd.js +1 -1
  19. package/plugins/comment/lg-comment.es5.js +1 -1
  20. package/plugins/comment/lg-comment.min.js +1 -1
  21. package/plugins/comment/lg-comment.umd.js +1 -1
  22. package/plugins/fullscreen/lg-fullscreen.es5.js +1 -1
  23. package/plugins/fullscreen/lg-fullscreen.min.js +1 -1
  24. package/plugins/fullscreen/lg-fullscreen.umd.js +1 -1
  25. package/plugins/hash/lg-hash.es5.js +1 -1
  26. package/plugins/hash/lg-hash.min.js +1 -1
  27. package/plugins/hash/lg-hash.umd.js +1 -1
  28. package/plugins/mediumZoom/lg-medium-zoom.es5.js +1 -1
  29. package/plugins/mediumZoom/lg-medium-zoom.min.js +1 -1
  30. package/plugins/mediumZoom/lg-medium-zoom.umd.js +1 -1
  31. package/plugins/pager/lg-pager.es5.js +1 -1
  32. package/plugins/pager/lg-pager.min.js +1 -1
  33. package/plugins/pager/lg-pager.umd.js +1 -1
  34. package/plugins/relativeCaption/lg-relative-caption.es5.js +1 -1
  35. package/plugins/relativeCaption/lg-relative-caption.min.js +1 -1
  36. package/plugins/relativeCaption/lg-relative-caption.umd.js +1 -1
  37. package/plugins/rotate/lg-rotate.es5.js +1 -1
  38. package/plugins/rotate/lg-rotate.min.js +1 -1
  39. package/plugins/rotate/lg-rotate.umd.js +1 -1
  40. package/plugins/share/lg-share.es5.js +1 -1
  41. package/plugins/share/lg-share.min.js +1 -1
  42. package/plugins/share/lg-share.umd.js +1 -1
  43. package/plugins/thumbnail/lg-thumbnail.es5.js +1 -1
  44. package/plugins/thumbnail/lg-thumbnail.min.js +1 -1
  45. package/plugins/thumbnail/lg-thumbnail.umd.js +1 -1
  46. package/plugins/video/lg-video.es5.js +1 -1
  47. package/plugins/video/lg-video.min.js +1 -1
  48. package/plugins/video/lg-video.umd.js +1 -1
  49. package/plugins/zoom/lg-zoom.es5.js +1 -1
  50. package/plugins/zoom/lg-zoom.min.js +1 -1
  51. package/plugins/zoom/lg-zoom.umd.js +1 -1
  52. package/react/Lightgallery.es5.js +32 -24
  53. package/react/Lightgallery.es5.js.map +1 -1
  54. package/react/Lightgallery.umd.js +32 -24
  55. package/react/Lightgallery.umd.js.map +1 -1
  56. package/vue/LightGalleryVue.common.js +30 -25
  57. package/vue/LightGalleryVue.common.js.map +1 -1
  58. package/vue/LightGalleryVue.umd.js +30 -25
  59. package/vue/LightGalleryVue.umd.js.map +1 -1
  60. package/vue/LightGalleryVue.umd.min.js +2 -2
  61. 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
- (function () {
5919
- if (typeof window.CustomEvent === 'function') return false;
5920
-
5921
- function CustomEvent(event, params) {
5922
- params = params || {
5923
- bubbles: false,
5924
- cancelable: false,
5925
- detail: null
5926
- };
5927
- var evt = document.createEvent('CustomEvent');
5928
- evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
5929
- return evt;
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
- window.CustomEvent = CustomEvent;
5933
- })();
5933
+ window.CustomEvent = CustomEvent;
5934
+ })();
5934
5935
 
5935
- (function () {
5936
- if (!Element.prototype.matches) {
5937
- Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
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: document.body,
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
- e.preventDefault();
8562
+ e.preventDefault();
8563
+ } else if (e.deltaY < 0) {
8564
+ _this23.goToPrevSlide();
8565
+
8566
+ e.preventDefault();
8567
+ }
8563
8568
  });
8564
8569
  }
8565
8570
  }, {