@creative-web-solution/front-library 7.1.38 → 7.1.40

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 7.1.40
4
+
5
+ * [Slider]: Improve auto slide function
6
+
7
+ ## 7.1.39
8
+
9
+ * [DragSlider]: Fix end positioning
10
+
3
11
  ## 7.1.38
4
12
 
5
13
  * [Slider]: Handle popin inside the background layer
@@ -395,7 +395,7 @@ export default class DragSlider {
395
395
  return (
396
396
  this.#viewportInfo.width -
397
397
  this.#$list!.scrollWidth -
398
- Math.max(this.#siteOffsetLeft, this.#siteOffsetRight)
398
+ this.#siteOffsetRight
399
399
  );
400
400
  }
401
401
 
@@ -388,6 +388,10 @@ export default class SliderControls {
388
388
 
389
389
  clearTimeout( this.#autoslideTimeoutId );
390
390
 
391
+ if (!currentSlide) {
392
+ return;
393
+ }
394
+
391
395
  this.#autoslideTimeoutId = setTimeout(
392
396
  this.#makeAutoslide,
393
397
  ( currentSlide.delay as number || this.#options.autoslide as number ) * 1000
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Front Library
2
2
 
3
- @version: 7.1.38
3
+ @version: 7.1.40
4
4
 
5
5
 
6
6
  ## Use
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@creative-web-solution/front-library",
3
3
  "title": "Frontend library",
4
4
  "description": "Frontend functions and modules",
5
- "version": "7.1.38",
5
+ "version": "7.1.40",
6
6
  "homepage": "https://github.com/creative-web-solution/front-library",
7
7
  "author": "Creative Web Solution <contact@cws-studio.com> (https://www.cws-studio.com)",
8
8
  "keywords": [],