@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egjs/flicking",
3
- "version": "4.9.1",
3
+ "version": "4.9.3",
4
4
  "description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.",
5
5
  "main": "dist/flicking.js",
6
6
  "module": "dist/flicking.esm.js",
@@ -136,7 +136,7 @@
136
136
  "typescript-transform-paths": "^2.2.3"
137
137
  },
138
138
  "dependencies": {
139
- "@egjs/axes": "^3.4.0",
139
+ "@egjs/axes": "^3.8.0",
140
140
  "@egjs/component": "^3.0.1",
141
141
  "@egjs/imready": "^1.1.3",
142
142
  "@egjs/list-differ": "^1.0.0"
package/src/Flicking.ts CHANGED
@@ -1084,6 +1084,10 @@ class Flicking extends Component<FlickingEvents> {
1084
1084
  return Promise.reject(new FlickingError(ERROR.MESSAGE.ANIMATION_ALREADY_PLAYING, ERROR.CODE.ANIMATION_ALREADY_PLAYING));
1085
1085
  }
1086
1086
 
1087
+ if (this._control.holding) {
1088
+ this._control.controller.release();
1089
+ }
1090
+
1087
1091
  return this._control.moveToPanel(panel, {
1088
1092
  duration,
1089
1093
  direction
@@ -202,6 +202,18 @@ class AxesController {
202
202
  return this;
203
203
  }
204
204
 
205
+ /**
206
+ * Releases ongoing user input (mouse/touch)
207
+ * @ko 사용자의 현재 입력(마우스/터치)를 중단시킵니다
208
+ * @chainable
209
+ * @return {this}
210
+ */
211
+ public release(): this {
212
+ this._panInput?.release();
213
+
214
+ return this;
215
+ }
216
+
205
217
  /**
206
218
  * Update {@link https://naver.github.io/egjs-axes/ @egjs/axes}'s state
207
219
  * @ko {@link https://naver.github.io/egjs-axes/ @egjs/axes}의 상태를 갱신합니다
@@ -161,6 +161,18 @@ abstract class Control {
161
161
  return this;
162
162
  }
163
163
 
164
+ /**
165
+ * Releases ongoing user input (mouse/touch)
166
+ * @ko 사용자의 현재 입력(마우스/터치)를 중단시킵니다
167
+ * @chainable
168
+ * @return {this}
169
+ */
170
+ public release(): this {
171
+ this._controller.release();
172
+
173
+ return this;
174
+ }
175
+
164
176
  /**
165
177
  * Update position after resizing
166
178
  * @ko resize 이후에 position을 업데이트합니다