lightgallery 2.6.1 → 2.7.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.
Files changed (118) hide show
  1. package/angular/12/README.md +24 -0
  2. package/angular/{bundles/lightgallery-angular.umd.js → 12/bundles/lightgallery-angular-12.umd.js} +22 -37
  3. package/angular/12/bundles/lightgallery-angular-12.umd.js.map +1 -0
  4. package/angular/12/esm2015/lib/lightgallery-angular.component.js +221 -0
  5. package/angular/12/esm2015/lib/lightgallery-angular.module.js +17 -0
  6. package/angular/12/esm2015/lib/lightgallery-angular.service.js +14 -0
  7. package/angular/12/esm2015/lightgallery-angular-12.js +5 -0
  8. package/angular/{esm2015 → 12/esm2015}/public-api.js +0 -0
  9. package/angular/12/fesm2015/lightgallery-angular-12.js +258 -0
  10. package/angular/12/fesm2015/lightgallery-angular-12.js.map +1 -0
  11. package/angular/12/lib/lightgallery-angular.component.d.ts +38 -0
  12. package/angular/12/lib/lightgallery-angular.module.d.ts +7 -0
  13. package/angular/12/lib/lightgallery-angular.service.d.ts +6 -0
  14. package/angular/12/lightgallery-angular-12.d.ts +5 -0
  15. package/angular/12/package.json +18 -0
  16. package/angular/12/public-api.d.ts +3 -0
  17. package/angular/13/README.md +24 -0
  18. package/angular/13/esm2020/lib/lightgallery-angular.component.mjs +221 -0
  19. package/angular/13/esm2020/lib/lightgallery-angular.module.mjs +17 -0
  20. package/angular/13/esm2020/lib/lightgallery-angular.service.mjs +14 -0
  21. package/angular/13/esm2020/lightgallery-angular-13.mjs +5 -0
  22. package/angular/13/esm2020/public-api.mjs +7 -0
  23. package/angular/13/fesm2015/lightgallery-angular-13.mjs +258 -0
  24. package/angular/13/fesm2015/lightgallery-angular-13.mjs.map +1 -0
  25. package/angular/13/fesm2020/lightgallery-angular-13.mjs +258 -0
  26. package/angular/13/fesm2020/lightgallery-angular-13.mjs.map +1 -0
  27. package/angular/13/lib/lightgallery-angular.component.d.ts +38 -0
  28. package/angular/13/lib/lightgallery-angular.module.d.ts +7 -0
  29. package/angular/13/lib/lightgallery-angular.service.d.ts +6 -0
  30. package/angular/13/lightgallery-angular-13.d.ts +5 -0
  31. package/angular/13/package.json +31 -0
  32. package/angular/13/public-api.d.ts +3 -0
  33. package/angular/README.md +1 -1
  34. package/angular/esm2020/lib/lightgallery-angular.component.mjs +217 -0
  35. package/angular/esm2020/lib/lightgallery-angular.module.mjs +17 -0
  36. package/angular/esm2020/lib/lightgallery-angular.service.mjs +14 -0
  37. package/angular/{esm2015/lightgallery-angular.js → esm2020/lightgallery-angular.mjs} +0 -0
  38. package/angular/esm2020/public-api.mjs +7 -0
  39. package/angular/fesm2015/{lightgallery-angular.js → lightgallery-angular.mjs} +72 -81
  40. package/angular/fesm2015/lightgallery-angular.mjs.map +1 -0
  41. package/angular/fesm2020/lightgallery-angular.mjs +254 -0
  42. package/angular/fesm2020/lightgallery-angular.mjs.map +1 -0
  43. package/angular/{lightgallery-angular.d.ts → index.d.ts} +0 -1
  44. package/angular/lib/lightgallery-angular.component.d.ts +1 -2
  45. package/angular/lib/lightgallery-angular.module.d.ts +0 -1
  46. package/angular/lib/lightgallery-angular.service.d.ts +0 -1
  47. package/angular/package.json +23 -14
  48. package/angular/public-api.d.ts +0 -1
  49. package/lg-settings.d.ts +1 -0
  50. package/lib/lg-settings.js.map +1 -1
  51. package/lib/plugins/zoom/lg-zoom.js +27 -21
  52. package/lib/plugins/zoom/lg-zoom.js.map +1 -1
  53. package/lightgallery.es5.js +1 -1
  54. package/lightgallery.es5.js.map +1 -1
  55. package/lightgallery.min.js +1 -1
  56. package/lightgallery.umd.js +1 -1
  57. package/lightgallery.umd.js.map +1 -1
  58. package/lit/lightgallery.esm.js +1 -1
  59. package/lit/lightgallery.umd.js +1 -1
  60. package/package.json +1 -1
  61. package/plugins/autoplay/lg-autoplay.es5.js +1 -1
  62. package/plugins/autoplay/lg-autoplay.min.js +1 -1
  63. package/plugins/autoplay/lg-autoplay.umd.js +1 -1
  64. package/plugins/comment/lg-comment.es5.js +1 -1
  65. package/plugins/comment/lg-comment.min.js +1 -1
  66. package/plugins/comment/lg-comment.umd.js +1 -1
  67. package/plugins/fullscreen/lg-fullscreen.es5.js +1 -1
  68. package/plugins/fullscreen/lg-fullscreen.min.js +1 -1
  69. package/plugins/fullscreen/lg-fullscreen.umd.js +1 -1
  70. package/plugins/hash/lg-hash.es5.js +1 -1
  71. package/plugins/hash/lg-hash.min.js +1 -1
  72. package/plugins/hash/lg-hash.umd.js +1 -1
  73. package/plugins/mediumZoom/lg-medium-zoom.es5.js +1 -1
  74. package/plugins/mediumZoom/lg-medium-zoom.min.js +1 -1
  75. package/plugins/mediumZoom/lg-medium-zoom.umd.js +1 -1
  76. package/plugins/pager/lg-pager.es5.js +1 -1
  77. package/plugins/pager/lg-pager.min.js +1 -1
  78. package/plugins/pager/lg-pager.umd.js +1 -1
  79. package/plugins/relativeCaption/lg-relative-caption.es5.js +1 -1
  80. package/plugins/relativeCaption/lg-relative-caption.min.js +1 -1
  81. package/plugins/relativeCaption/lg-relative-caption.umd.js +1 -1
  82. package/plugins/rotate/lg-rotate.es5.js +1 -1
  83. package/plugins/rotate/lg-rotate.min.js +1 -1
  84. package/plugins/rotate/lg-rotate.umd.js +1 -1
  85. package/plugins/share/lg-share.es5.js +1 -1
  86. package/plugins/share/lg-share.min.js +1 -1
  87. package/plugins/share/lg-share.umd.js +1 -1
  88. package/plugins/thumbnail/lg-thumbnail.es5.js +1 -1
  89. package/plugins/thumbnail/lg-thumbnail.min.js +1 -1
  90. package/plugins/thumbnail/lg-thumbnail.umd.js +1 -1
  91. package/plugins/video/lg-video.es5.js +1 -1
  92. package/plugins/video/lg-video.min.js +1 -1
  93. package/plugins/video/lg-video.umd.js +1 -1
  94. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +1 -1
  95. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +1 -1
  96. package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +1 -1
  97. package/plugins/zoom/lg-zoom.es5.js +28 -22
  98. package/plugins/zoom/lg-zoom.es5.js.map +1 -1
  99. package/plugins/zoom/lg-zoom.min.js +2 -2
  100. package/plugins/zoom/lg-zoom.umd.js +28 -22
  101. package/plugins/zoom/lg-zoom.umd.js.map +1 -1
  102. package/react/Lightgallery.es5.js +1 -1
  103. package/react/Lightgallery.es5.js.map +1 -1
  104. package/react/Lightgallery.umd.js +1 -1
  105. package/react/Lightgallery.umd.js.map +1 -1
  106. package/vue/LightGalleryVue.common.js.map +1 -1
  107. package/vue/LightGalleryVue.umd.js.map +1 -1
  108. package/vue/LightGalleryVue.umd.min.js.map +1 -1
  109. package/angular/bundles/lightgallery-angular.umd.js.map +0 -1
  110. package/angular/esm2015/lib/lightgallery-angular.component.js +0 -225
  111. package/angular/esm2015/lib/lightgallery-angular.module.js +0 -18
  112. package/angular/esm2015/lib/lightgallery-angular.service.js +0 -14
  113. package/angular/fesm2015/lightgallery-angular.js.map +0 -1
  114. package/angular/lib/lightgallery-angular.component.d.ts.map +0 -1
  115. package/angular/lib/lightgallery-angular.module.d.ts.map +0 -1
  116. package/angular/lib/lightgallery-angular.service.d.ts.map +0 -1
  117. package/angular/lightgallery-angular.d.ts.map +0 -1
  118. package/angular/public-api.d.ts.map +0 -1
@@ -33,7 +33,7 @@ const tt=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
34
  */
35
35
  /*!
36
- * lightgallery | 2.6.1 | September 14th 2022
36
+ * lightgallery | 2.7.0 | October 9th 2022
37
37
  * http://www.lightgalleryjs.com/
38
38
  * Copyright (c) 2020 Sachin Neravath;
39
39
  * @license GPLv3
@@ -11,7 +11,7 @@ const s=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
13
  /*!
14
- * lightgallery | 2.6.1 | September 14th 2022
14
+ * lightgallery | 2.7.0 | October 9th 2022
15
15
  * http://www.lightgalleryjs.com/
16
16
  * Copyright (c) 2020 Sachin Neravath;
17
17
  * @license GPLv3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lightgallery",
3
- "version": "2.6.1",
3
+ "version": "2.7.0",
4
4
  "description": "lightGallery is a feature-rich, modular JavaScript gallery plugin for building beautiful image and video galleries for the web and the mobile",
5
5
  "keywords": [
6
6
  "JavaScript",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * lightgallery | 2.6.1 | September 14th 2022
2
+ * lightgallery | 2.7.0 | October 9th 2022
3
3
  * http://www.lightgalleryjs.com/
4
4
  * Copyright (c) 2020 Sachin Neravath;
5
5
  * @license GPLv3
@@ -82,6 +82,7 @@ var lGEvents = {
82
82
  autoplayStop: 'lgAutoplayStop',
83
83
  };
84
84
 
85
+ var ZOOM_TRANSITION_DURATION = 500;
85
86
  var Zoom = /** @class */ (function () {
86
87
  function Zoom(instance, $LG) {
87
88
  // get lightGallery core plugin instance
@@ -277,10 +278,7 @@ var Zoom = /** @class */ (function () {
277
278
  this.left = x;
278
279
  this.top = y;
279
280
  if (resetToMax) {
280
- var actualSizeScale = this.getCurrentImageActualSizeScale();
281
- if (scale >= actualSizeScale) {
282
- this.setZoomImageSize();
283
- }
281
+ this.setZoomImageSize();
284
282
  }
285
283
  };
286
284
  Zoom.prototype.resetImageTranslate = function (index) {
@@ -303,25 +301,33 @@ var Zoom = /** @class */ (function () {
303
301
  .find('.lg-image')
304
302
  .first();
305
303
  setTimeout(function () {
306
- $image.addClass('no-transition');
307
- _this.imageReset = true;
308
- }, 500);
309
- setTimeout(function () {
310
- var dragAllowedAxises = _this.getDragAllowedAxises(_this.scale);
311
- $image
312
- .css('width', $image.get().naturalWidth + 'px')
313
- .css('height', $image.get().naturalHeight + 'px');
314
- _this.core.outer.addClass('lg-actual-size');
315
- if (dragAllowedAxises.allowX && dragAllowedAxises.allowY) {
316
- $image.addClass('reset-transition');
304
+ var actualSizeScale = _this.getCurrentImageActualSizeScale();
305
+ if (_this.scale >= actualSizeScale) {
306
+ $image.addClass('no-transition');
307
+ _this.imageReset = true;
317
308
  }
318
- else if (dragAllowedAxises.allowX && !dragAllowedAxises.allowY) {
319
- $image.addClass('reset-transition-x');
320
- }
321
- else if (!dragAllowedAxises.allowX && dragAllowedAxises.allowY) {
322
- $image.addClass('reset-transition-y');
309
+ }, ZOOM_TRANSITION_DURATION);
310
+ setTimeout(function () {
311
+ var actualSizeScale = _this.getCurrentImageActualSizeScale();
312
+ if (_this.scale >= actualSizeScale) {
313
+ var dragAllowedAxises = _this.getDragAllowedAxises(_this.scale);
314
+ $image
315
+ .css('width', $image.get().naturalWidth + 'px')
316
+ .css('height', $image.get().naturalHeight + 'px');
317
+ _this.core.outer.addClass('lg-actual-size');
318
+ if (dragAllowedAxises.allowX && dragAllowedAxises.allowY) {
319
+ $image.addClass('reset-transition');
320
+ }
321
+ else if (dragAllowedAxises.allowX &&
322
+ !dragAllowedAxises.allowY) {
323
+ $image.addClass('reset-transition-x');
324
+ }
325
+ else if (!dragAllowedAxises.allowX &&
326
+ dragAllowedAxises.allowY) {
327
+ $image.addClass('reset-transition-y');
328
+ }
323
329
  }
324
- }, 550);
330
+ }, ZOOM_TRANSITION_DURATION + 50);
325
331
  };
326
332
  /**
327
333
  * @desc apply scale3d to image and translate to image wrap