@creative-web-solution/front-library 7.1.15 → 7.1.16
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 +5 -0
- package/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/Modules/DragSlider.ts
CHANGED
|
@@ -152,6 +152,11 @@ export default class DragSlider {
|
|
|
152
152
|
if ( Math.abs( finalX - this.#listDelta ) <= 3 ) {
|
|
153
153
|
finalX = this.#listDelta;
|
|
154
154
|
}
|
|
155
|
+
|
|
156
|
+
// If close to the start, then snap to it
|
|
157
|
+
if ( Math.abs( finalX ) <= 3 ) {
|
|
158
|
+
finalX = 0;
|
|
159
|
+
}
|
|
155
160
|
}
|
|
156
161
|
|
|
157
162
|
const IS_SNAP_TO_END = finalX === this.#listDelta;
|
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.16",
|
|
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": [],
|