@creative-web-solution/front-library 7.1.33 → 7.1.34

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,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 7.1.34
4
+
5
+ * [DragSlider]: Add new params to onChangeState callback
6
+
3
7
  ## 7.1.33
4
8
 
5
9
  * [DragSlider]: Update delta computing
@@ -186,7 +186,7 @@ export default class DragSlider {
186
186
  );
187
187
 
188
188
  if (prevIsDraggingActive !== this.#isDraggingActive) {
189
- this.#options.onChangeState?.(this.#isDraggingActive);
189
+ this.#options.onChangeState?.(this.#isDraggingActive, this.#getCallbackOptions(this.#deltaMove.x));
190
190
  }
191
191
 
192
192
  this.#itemArray.length = 0;
@@ -216,14 +216,6 @@ export default class DragSlider {
216
216
 
217
217
  if (!flag) {
218
218
  this.#itemArray.push(DATA);
219
- // this.#itemArray.push({
220
- // ...DATA,
221
- // "info": {
222
- // ...ITEM_OFFSET,
223
- // "left": ABS_LIST_DELTA + this.#siteOffsetLeft,
224
- // "x": ABS_LIST_DELTA + this.#siteOffsetLeft
225
- // }
226
- // });
227
219
  }
228
220
  flag = true;
229
221
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Front Library
2
2
 
3
- @version: 7.1.33
3
+ @version: 7.1.34
4
4
 
5
5
 
6
6
  ## Use
@@ -43,7 +43,7 @@ declare namespace FLib {
43
43
  onMouseEnter?: Callback;
44
44
  onMouseLeave?: Callback;
45
45
  onInit?: Callback;
46
- onChangeState?: ( isDragging: boolean ) => void;
46
+ onChangeState?: ( isActive: boolean, options: CallbackParam ) => void;
47
47
  /**
48
48
  * In px.
49
49
  * @defaultValue 40
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.33",
5
+ "version": "7.1.34",
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": [],