@egjs/flicking 4.9.1 → 4.9.3

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.
@@ -27,6 +27,7 @@ declare class AxesController {
27
27
  destroy(): void;
28
28
  enable(): this;
29
29
  disable(): this;
30
+ release(): this;
30
31
  update(controlParams: ControlParams): this;
31
32
  addPreventClickHandler(): this;
32
33
  removePreventClickHandler(): this;
@@ -19,6 +19,7 @@ declare abstract class Control {
19
19
  destroy(): void;
20
20
  enable(): this;
21
21
  disable(): this;
22
+ release(): this;
22
23
  updatePosition(progressInPanel: number): void;
23
24
  updateInput(): this;
24
25
  resetActive(): this;
@@ -4,7 +4,7 @@ name: @egjs/flicking
4
4
  license: MIT
5
5
  author: NAVER Corp.
6
6
  repository: https://github.com/naver/egjs-flicking
7
- version: 4.9.1
7
+ version: 4.9.3
8
8
  */
9
9
  import Component, { ComponentEvent } from '@egjs/component';
10
10
  import Axes, { PanInput } from '@egjs/axes';
@@ -2450,6 +2450,20 @@ function () {
2450
2450
  (_a = this._panInput) === null || _a === void 0 ? void 0 : _a.disable();
2451
2451
  return this;
2452
2452
  };
2453
+ /**
2454
+ * Releases ongoing user input (mouse/touch)
2455
+ * @ko 사용자의 현재 입력(마우스/터치)를 중단시킵니다
2456
+ * @chainable
2457
+ * @return {this}
2458
+ */
2459
+
2460
+
2461
+ __proto.release = function () {
2462
+ var _a;
2463
+
2464
+ (_a = this._panInput) === null || _a === void 0 ? void 0 : _a.release();
2465
+ return this;
2466
+ };
2453
2467
  /**
2454
2468
  * Update {@link https://naver.github.io/egjs-axes/ @egjs/axes}'s state
2455
2469
  * @ko {@link https://naver.github.io/egjs-axes/ @egjs/axes}의 상태를 갱신합니다
@@ -2761,6 +2775,19 @@ function () {
2761
2775
 
2762
2776
  return this;
2763
2777
  };
2778
+ /**
2779
+ * Releases ongoing user input (mouse/touch)
2780
+ * @ko 사용자의 현재 입력(마우스/터치)를 중단시킵니다
2781
+ * @chainable
2782
+ * @return {this}
2783
+ */
2784
+
2785
+
2786
+ __proto.release = function () {
2787
+ this._controller.release();
2788
+
2789
+ return this;
2790
+ };
2764
2791
  /**
2765
2792
  * Update position after resizing
2766
2793
  * @ko resize 이후에 position을 업데이트합니다
@@ -8000,6 +8027,10 @@ function (_super) {
8000
8027
  return Promise.reject(new FlickingError(MESSAGE.ANIMATION_ALREADY_PLAYING, CODE.ANIMATION_ALREADY_PLAYING));
8001
8028
  }
8002
8029
 
8030
+ if (this._control.holding) {
8031
+ this._control.controller.release();
8032
+ }
8033
+
8003
8034
  return this._control.moveToPanel(panel, {
8004
8035
  duration: duration,
8005
8036
  direction: direction
@@ -8548,7 +8579,7 @@ function (_super) {
8548
8579
  */
8549
8580
 
8550
8581
 
8551
- Flicking.VERSION = "4.9.1";
8582
+ Flicking.VERSION = "4.9.3";
8552
8583
  return Flicking;
8553
8584
  }(Component);
8554
8585