@creative-web-solution/front-library 7.1.30 → 7.1.31
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 +5 -0
- package/Modules/DragSlider.ts +9 -3
- package/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/Modules/DragSlider.ts
CHANGED
|
@@ -570,12 +570,18 @@ export default class DragSlider {
|
|
|
570
570
|
|
|
571
571
|
this.#currentSnapItem = ITEM;
|
|
572
572
|
|
|
573
|
-
const
|
|
573
|
+
const finalX = Math.max(
|
|
574
|
+
Math.min(
|
|
575
|
+
this.#minXPos,
|
|
576
|
+
-1 * ITEM.info.left + this.#siteOffsetLeft
|
|
577
|
+
),
|
|
578
|
+
this.#maxXPos
|
|
579
|
+
);
|
|
574
580
|
|
|
575
|
-
this.#options.onSnap?.(this.#getCallbackOptions(
|
|
581
|
+
this.#options.onSnap?.(this.#getCallbackOptions(finalX, ITEM));
|
|
576
582
|
|
|
577
583
|
return this.#options
|
|
578
|
-
._animMoveItem(this.#$list,
|
|
584
|
+
._animMoveItem(this.#$list, finalX, (x) => {
|
|
579
585
|
this.#deltaMove.x = x;
|
|
580
586
|
|
|
581
587
|
this.#options.onSnapUpdate?.(
|
package/README.md
CHANGED
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.
|
|
5
|
+
"version": "7.1.31",
|
|
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": [],
|