@egjs/flicking 4.5.0 → 4.5.1

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/dist/flicking.js CHANGED
@@ -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.5.0
7
+ version: 4.5.1
8
8
  */
9
9
  (function (global, factory) {
10
10
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@egjs/component'), require('@egjs/axes'), require('@egjs/imready')) :
@@ -3512,6 +3512,21 @@ version: 4.5.0
3512
3512
  };
3513
3513
  return this;
3514
3514
  };
3515
+
3516
+ __proto.moveToPanel = function (panel, options) {
3517
+ return __awaiter(this, void 0, void 0, function () {
3518
+ var flicking, camera, controller;
3519
+ return __generator(this, function (_a) {
3520
+ flicking = getFlickingAttached(this._flicking);
3521
+ camera = flicking.camera;
3522
+ controller = this._controller;
3523
+ controller.update(camera.controlParams);
3524
+ return [2
3525
+ /*return*/
3526
+ , _super.prototype.moveToPanel.call(this, panel, options)];
3527
+ });
3528
+ });
3529
+ };
3515
3530
  /**
3516
3531
  * Move {@link Camera} to the given position
3517
3532
  * @ko {@link Camera}를 주어진 좌표로 이동합니다
@@ -8329,7 +8344,7 @@ version: 4.5.0
8329
8344
  */
8330
8345
 
8331
8346
 
8332
- Flicking.VERSION = "4.5.0";
8347
+ Flicking.VERSION = "4.5.1";
8333
8348
  return Flicking;
8334
8349
  }(Component);
8335
8350
 
@@ -8395,7 +8410,8 @@ version: 4.5.0
8395
8410
  getterDescriptor.get = function () {
8396
8411
  var _a;
8397
8412
 
8398
- return (_a = descriptor.get) === null || _a === void 0 ? void 0 : _a.call(this[flickingName]);
8413
+ var flicking = this[flickingName];
8414
+ return flicking && ((_a = descriptor.get) === null || _a === void 0 ? void 0 : _a.call(flicking));
8399
8415
  };
8400
8416
  }
8401
8417