@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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 7.1.16
4
+
5
+ * Fix doc
6
+ * [DragSlider] Fix "first item reach start position" condition
7
+
3
8
 
4
9
  ## 7.1.15
5
10
 
@@ -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
@@ -1,6 +1,6 @@
1
1
  # Front Library
2
2
 
3
- @version: 7.1.15
3
+ @version: 7.1.16
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.15",
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": [],