@egjs/flicking 4.13.1 → 4.13.2-beta.0

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.
@@ -1,6 +1,5 @@
1
1
  import Component from "@egjs/component";
2
2
  import Viewport from "./core/Viewport";
3
- import AutoResizer from "./core/AutoResizer";
4
3
  import { Panel } from "./core/panel";
5
4
  import VirtualManager, { VirtualOptions } from "./core/VirtualManager";
6
5
  import { Control } from "./control";
@@ -66,11 +65,9 @@ export interface FlickingOptions {
66
65
  autoResize: boolean;
67
66
  useResizeObserver: boolean;
68
67
  resizeDebounce: number;
69
- observePanelResize: boolean;
70
68
  maxResizeDebounce: number;
71
69
  useFractionalSize: boolean;
72
70
  externalRenderer: ExternalRenderer | null;
73
- optimizeSizeUpdate: boolean;
74
71
  renderExternal: {
75
72
  renderer: new (options: RendererOptions) => ExternalRenderer;
76
73
  rendererOptions: RendererOptions;
@@ -117,20 +114,16 @@ declare class Flicking extends Component<FlickingEvents> {
117
114
  private _autoResize;
118
115
  private _useResizeObserver;
119
116
  private _resizeDebounce;
120
- private _observePanelResize;
121
117
  private _maxResizeDebounce;
122
118
  private _useFractionalSize;
123
119
  private _externalRenderer;
124
120
  private _renderExternal;
125
- private _optimizeSizeUpdate;
126
121
  private _initialized;
127
122
  private _plugins;
128
- private _isResizing;
129
123
  get control(): Control;
130
124
  get camera(): Camera;
131
125
  get renderer(): Renderer;
132
126
  get viewport(): Viewport;
133
- get autoResizer(): AutoResizer;
134
127
  get initialized(): boolean;
135
128
  get circularEnabled(): boolean;
136
129
  get virtualEnabled(): boolean;
@@ -178,7 +171,6 @@ declare class Flicking extends Component<FlickingEvents> {
178
171
  get autoInit(): boolean;
179
172
  get autoResize(): FlickingOptions["autoResize"];
180
173
  get useResizeObserver(): FlickingOptions["useResizeObserver"];
181
- get observePanelResize(): FlickingOptions["observePanelResize"];
182
174
  get resizeDebounce(): number;
183
175
  get maxResizeDebounce(): number;
184
176
  get useFractionalSize(): boolean;
@@ -187,7 +179,6 @@ declare class Flicking extends Component<FlickingEvents> {
187
179
  renderer: new (options: RendererOptions) => ExternalRenderer;
188
180
  rendererOptions: RendererOptions;
189
181
  };
190
- get optimizeSizeUpdate(): FlickingOptions["optimizeSizeUpdate"];
191
182
  set align(val: FlickingOptions["align"]);
192
183
  set defaultIndex(val: FlickingOptions["defaultIndex"]);
193
184
  set horizontal(val: FlickingOptions["horizontal"]);
@@ -217,9 +208,7 @@ declare class Flicking extends Component<FlickingEvents> {
217
208
  set renderOnlyVisible(val: FlickingOptions["renderOnlyVisible"]);
218
209
  set autoResize(val: FlickingOptions["autoResize"]);
219
210
  set useResizeObserver(val: FlickingOptions["useResizeObserver"]);
220
- set observePanelResize(val: FlickingOptions["observePanelResize"]);
221
- set optimizeSizeUpdate(val: FlickingOptions["optimizeSizeUpdate"]);
222
- constructor(root: HTMLElement | string, { align, defaultIndex, horizontal, circular, circularFallback, bound, adaptive, panelsPerView, noPanelStyleOverride, resizeOnContentsReady, nested, needPanelThreshold, preventEventsBeforeInit, deceleration, duration, easing, inputType, moveType, threshold, dragThreshold, interruptable, bounce, iOSEdgeSwipeThreshold, preventClickOnDrag, preventDefaultOnDrag, disableOnInit, changeOnHold, renderOnlyVisible, virtual, autoInit, autoResize, useResizeObserver, resizeDebounce, observePanelResize, maxResizeDebounce, useFractionalSize, externalRenderer, renderExternal, optimizeSizeUpdate }?: Partial<FlickingOptions>);
211
+ constructor(root: HTMLElement | string, { align, defaultIndex, horizontal, circular, circularFallback, bound, adaptive, panelsPerView, noPanelStyleOverride, resizeOnContentsReady, nested, needPanelThreshold, preventEventsBeforeInit, deceleration, duration, easing, inputType, moveType, threshold, dragThreshold, interruptable, bounce, iOSEdgeSwipeThreshold, preventClickOnDrag, preventDefaultOnDrag, disableOnInit, changeOnHold, renderOnlyVisible, virtual, autoInit, autoResize, useResizeObserver, resizeDebounce, maxResizeDebounce, useFractionalSize, externalRenderer, renderExternal }?: Partial<FlickingOptions>);
223
212
  init(): Promise<void>;
224
213
  destroy(): void;
225
214
  prev(duration?: number): Promise<void>;
@@ -40,6 +40,6 @@ declare abstract class Control {
40
40
  newActivePanel: Panel;
41
41
  axesEvent?: OnRelease;
42
42
  }): Promise<void>;
43
- private _getPosition;
43
+ protected _getPosition(panel: Panel, direction?: ValueOf<typeof DIRECTION>): number;
44
44
  }
45
45
  export default Control;
@@ -8,12 +8,7 @@ declare class AutoResizer {
8
8
  get enabled(): boolean;
9
9
  constructor(flicking: Flicking);
10
10
  enable(): this;
11
- observePanels(): this;
12
- unobservePanels(): this;
13
- observe(element: HTMLElement): this;
14
- unobserve(element: HTMLElement): this;
15
11
  disable(): this;
16
- private _onResizeWrapper;
17
12
  private _onResize;
18
13
  private _doScheduledResize;
19
14
  private _skipFirstResize;
@@ -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.13.1
7
+ version: 4.13.2-beta.0
8
8
  */
9
9
  'use strict';
10
10
 
@@ -674,9 +674,6 @@ var getProgress = function (pos, prev, next) {
674
674
  };
675
675
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
676
676
  var getStyle = function (el) {
677
- if (!el) {
678
- return {};
679
- }
680
677
  return window.getComputedStyle(el) || el.currentStyle;
681
678
  };
682
679
  var setSize = function (el, _a) {
@@ -949,59 +946,13 @@ var Viewport = /*#__PURE__*/function () {
949
946
  return Viewport;
950
947
  }();
951
948
 
952
- /*
953
- * Copyright (c) 2015 NAVER Corp.
954
- * egjs projects are licensed under the MIT license
955
- */
956
- /**
957
- * A component that detects size change and trigger resize method when the autoResize option is used
958
- * @ko autoResize 옵션을 사용할 때 크기 변화를 감지하고 Flicking의 resize를 호출하는 컴포넌트
959
- */
960
949
  var AutoResizer = /*#__PURE__*/function () {
961
950
  function AutoResizer(flicking) {
962
951
  var _this = this;
963
- this._onResizeWrapper = function () {
964
- _this._onResize([]);
965
- };
966
- this._onResize = function (entries) {
952
+ this._onResize = function () {
967
953
  var flicking = _this._flicking;
968
954
  var resizeDebounce = flicking.resizeDebounce;
969
955
  var maxResizeDebounce = flicking.maxResizeDebounce;
970
- var resizedViewportElement = flicking.element;
971
- // 현재 구현에서 리사이즈 옵저빙 대상은 패널과 뷰포트 2개만 존재.
972
- // 아래는 뷰포트만 변경되었을 때 동작해야하는 로직이 있으므로 아래와 같이 조건문을 건다.
973
- // 패널 쪽에서는 리사이즈 감지에 resizeObserver를 사용하지 않는 경우가 없으므로 이 조건은 곧 뷰포트만 리사이즈가 된 경우를 의미한다.
974
- var isResizedViewportOnly = entries.find(function (e) {
975
- return e.target === flicking.element;
976
- }) && entries.length === 1;
977
- // 참고: resizeObserver를 사용하지 않은 경우에는 entries.length가 0으로 오는데 이 경우에는 그냥 항상 리사이즈가 진행되도록 한다.
978
- // (vw, vh 등을 사용하는 경우 이상 동작이 발생할 여지가 있기 때문이다)
979
- if (isResizedViewportOnly) {
980
- // resize 이벤트가 발생했으나 이전과 width, height의 변화가 없다면 이후 로직을 진행하지 않는다.
981
- var beforeSize = {
982
- width: flicking.viewport.width,
983
- height: flicking.viewport.height
984
- };
985
- var afterSize = {
986
- width: getElementSize({
987
- el: resizedViewportElement,
988
- horizontal: true,
989
- useFractionalSize: _this._flicking.useFractionalSize,
990
- useOffset: false,
991
- style: getStyle(resizedViewportElement)
992
- }),
993
- height: getElementSize({
994
- el: resizedViewportElement,
995
- horizontal: false,
996
- useFractionalSize: _this._flicking.useFractionalSize,
997
- useOffset: false,
998
- style: getStyle(resizedViewportElement)
999
- })
1000
- };
1001
- if (beforeSize.height === afterSize.height && beforeSize.width === afterSize.width) {
1002
- return;
1003
- }
1004
- }
1005
956
  if (resizeDebounce <= 0) {
1006
957
  void flicking.resize();
1007
958
  } else {
@@ -1027,12 +978,12 @@ var AutoResizer = /*#__PURE__*/function () {
1027
978
  // eslint-disable-next-line @typescript-eslint/member-ordering
1028
979
  this._skipFirstResize = function () {
1029
980
  var isFirstResize = true;
1030
- return function (entries) {
981
+ return function () {
1031
982
  if (isFirstResize) {
1032
983
  isFirstResize = false;
1033
984
  return;
1034
985
  }
1035
- _this._onResize(entries);
986
+ _this._onResize();
1036
987
  };
1037
988
  }();
1038
989
  this._flicking = flicking;
@@ -1058,46 +1009,14 @@ var AutoResizer = /*#__PURE__*/function () {
1058
1009
  if (flicking.useResizeObserver && !!window.ResizeObserver) {
1059
1010
  var viewportSizeNot0 = viewport.width !== 0 || viewport.height !== 0;
1060
1011
  var resizeObserver = viewportSizeNot0 ? new ResizeObserver(this._skipFirstResize) : new ResizeObserver(this._onResize);
1012
+ resizeObserver.observe(flicking.viewport.element);
1061
1013
  this._resizeObserver = resizeObserver;
1062
- this.observe(flicking.viewport.element);
1063
- if (flicking.observePanelResize) {
1064
- this.observePanels();
1065
- }
1066
1014
  } else {
1067
- window.addEventListener("resize", this._onResizeWrapper);
1015
+ window.addEventListener("resize", this._onResize);
1068
1016
  }
1069
1017
  this._enabled = true;
1070
1018
  return this;
1071
1019
  };
1072
- __proto.observePanels = function () {
1073
- var _this = this;
1074
- this._flicking.panels.forEach(function (panel) {
1075
- _this.observe(panel.element);
1076
- });
1077
- return this;
1078
- };
1079
- __proto.unobservePanels = function () {
1080
- var _this = this;
1081
- this._flicking.panels.forEach(function (panel) {
1082
- _this.unobserve(panel.element);
1083
- });
1084
- return this;
1085
- };
1086
- __proto.observe = function (element) {
1087
- var resizeObserver = this._resizeObserver;
1088
- if (!resizeObserver) return this;
1089
- resizeObserver.observe(element);
1090
- return this;
1091
- };
1092
- __proto.unobserve = function (element) {
1093
- var resizeObserver = this._resizeObserver;
1094
- if (!resizeObserver) return this;
1095
- resizeObserver.unobserve(element);
1096
- if (this._flicking.observePanelResize) {
1097
- this.unobservePanels();
1098
- }
1099
- return this;
1100
- };
1101
1020
  __proto.disable = function () {
1102
1021
  if (!this._enabled) return this;
1103
1022
  var resizeObserver = this._resizeObserver;
@@ -1105,7 +1024,7 @@ var AutoResizer = /*#__PURE__*/function () {
1105
1024
  resizeObserver.disconnect();
1106
1025
  this._resizeObserver = null;
1107
1026
  } else {
1108
- window.removeEventListener("resize", this._onResizeWrapper);
1027
+ window.removeEventListener("resize", this._onResize);
1109
1028
  }
1110
1029
  this._enabled = false;
1111
1030
  return this;
@@ -2996,7 +2915,11 @@ var SnapControl = /*#__PURE__*/function (_super) {
2996
2915
  if (snapDelta >= snapThreshold && snapDelta > 0) {
2997
2916
  // Move to anchor at position
2998
2917
  targetAnchor = this._findSnappedAnchor(position, anchorAtCamera);
2999
- } else if (absPosDelta >= flicking.threshold && absPosDelta > 0) {
2918
+ // const targetPanel = targetAnchor.panel;
2919
+ // const nextPosition = this._getPosition(targetPanel, DIRECTION.NEXT);
2920
+ // const prevPosition = this._getPosition(targetPanel, DIRECTION.PREV);
2921
+ // targetPosition = Math.abs(camera.position - nextPosition) < Math.abs(camera.position - prevPosition) ? nextPosition : prevPosition;
2922
+ } else if (absPosDelta >= flicking.threshold && absPosDelta > 0 && anchorAtCamera === activeAnchor) {
3000
2923
  // Move to the adjacent panel
3001
2924
  targetAnchor = this._findAdjacentAnchor(position, posDelta, anchorAtCamera);
3002
2925
  } else {
@@ -3024,6 +2947,7 @@ var SnapControl = /*#__PURE__*/function (_super) {
3024
2947
  if (!anchorAtCamera || !anchorAtPosition) {
3025
2948
  throw new FlickingError(MESSAGE.POSITION_NOT_REACHABLE(position), CODE.POSITION_NOT_REACHABLE);
3026
2949
  }
2950
+ // console.log("_findSnappedAnchor", anchorAtPosition);
3027
2951
  if (!isFinite(count)) {
3028
2952
  return anchorAtPosition;
3029
2953
  }
@@ -3444,10 +3368,7 @@ var CameraMode = /*#__PURE__*/function () {
3444
3368
  };
3445
3369
  __proto.findAnchorIncludePosition = function (position) {
3446
3370
  var anchors = this._flicking.camera.anchorPoints;
3447
- var anchorsIncludingPosition = anchors.filter(function (anchor) {
3448
- return anchor.panel.includePosition(position, true);
3449
- });
3450
- return anchorsIncludingPosition.reduce(function (nearest, anchor) {
3371
+ return anchors.reduce(function (nearest, anchor) {
3451
3372
  if (!nearest) return anchor;
3452
3373
  return Math.abs(nearest.position - position) < Math.abs(anchor.position - position) ? nearest : anchor;
3453
3374
  }, null);
@@ -4903,18 +4824,6 @@ var Renderer = /*#__PURE__*/function () {
4903
4824
  var activePanel = control.activePanel;
4904
4825
  // Update camera & control
4905
4826
  this._updateCameraAndControl();
4906
- if (flicking.autoResize && flicking.useResizeObserver) {
4907
- panelsAdded.forEach(function (panel) {
4908
- if (panel.element) {
4909
- flicking.autoResizer.observe(panel.element);
4910
- }
4911
- });
4912
- panelsRemoved.forEach(function (panel) {
4913
- if (panel.element) {
4914
- flicking.autoResizer.unobserve(panel.element);
4915
- }
4916
- });
4917
- }
4918
4827
  void this.render();
4919
4828
  if (!flicking.animating) {
4920
4829
  if (!activePanel || activePanel.removed) {
@@ -6192,23 +6101,18 @@ var Flicking = /*#__PURE__*/function (_super) {
6192
6101
  useResizeObserver = _9 === void 0 ? true : _9,
6193
6102
  _10 = _b.resizeDebounce,
6194
6103
  resizeDebounce = _10 === void 0 ? 0 : _10,
6195
- _11 = _b.observePanelResize,
6196
- observePanelResize = _11 === void 0 ? false : _11,
6197
- _12 = _b.maxResizeDebounce,
6198
- maxResizeDebounce = _12 === void 0 ? 100 : _12,
6199
- _13 = _b.useFractionalSize,
6200
- useFractionalSize = _13 === void 0 ? false : _13,
6201
- _14 = _b.externalRenderer,
6202
- externalRenderer = _14 === void 0 ? null : _14,
6203
- _15 = _b.renderExternal,
6204
- renderExternal = _15 === void 0 ? null : _15,
6205
- _16 = _b.optimizeSizeUpdate,
6206
- optimizeSizeUpdate = _16 === void 0 ? false : _16;
6104
+ _11 = _b.maxResizeDebounce,
6105
+ maxResizeDebounce = _11 === void 0 ? 100 : _11,
6106
+ _12 = _b.useFractionalSize,
6107
+ useFractionalSize = _12 === void 0 ? false : _12,
6108
+ _13 = _b.externalRenderer,
6109
+ externalRenderer = _13 === void 0 ? null : _13,
6110
+ _14 = _b.renderExternal,
6111
+ renderExternal = _14 === void 0 ? null : _14;
6207
6112
  var _this = _super.call(this) || this;
6208
6113
  // Internal states
6209
6114
  _this._initialized = false;
6210
6115
  _this._plugins = [];
6211
- _this._isResizing = false;
6212
6116
  // Bind options
6213
6117
  _this._align = align;
6214
6118
  _this._defaultIndex = defaultIndex;
@@ -6244,11 +6148,9 @@ var Flicking = /*#__PURE__*/function (_super) {
6244
6148
  _this._useResizeObserver = useResizeObserver;
6245
6149
  _this._resizeDebounce = resizeDebounce;
6246
6150
  _this._maxResizeDebounce = maxResizeDebounce;
6247
- _this._observePanelResize = observePanelResize;
6248
6151
  _this._useFractionalSize = useFractionalSize;
6249
6152
  _this._externalRenderer = externalRenderer;
6250
6153
  _this._renderExternal = renderExternal;
6251
- _this._optimizeSizeUpdate = optimizeSizeUpdate;
6252
6154
  // Create core components
6253
6155
  _this._viewport = new Viewport(_this, getElement(root));
6254
6156
  _this._autoResizer = new AutoResizer(_this);
@@ -6329,19 +6231,6 @@ var Flicking = /*#__PURE__*/function (_super) {
6329
6231
  enumerable: false,
6330
6232
  configurable: true
6331
6233
  });
6332
- Object.defineProperty(__proto, "autoResizer", {
6333
- /**
6334
- * {@link AutoResizer} instance of the Flicking
6335
- * @ko 현재 Flicking에 활성화된 {@link AutoResizer} 인스턴스
6336
- * @internal
6337
- * @readonly
6338
- */
6339
- get: function () {
6340
- return this._autoResizer;
6341
- },
6342
- enumerable: false,
6343
- configurable: true
6344
- });
6345
6234
  Object.defineProperty(__proto, "initialized", {
6346
6235
  // Internal States
6347
6236
  /**
@@ -7215,9 +7104,6 @@ var Flicking = /*#__PURE__*/function (_super) {
7215
7104
  // OTHERS
7216
7105
  set: function (val) {
7217
7106
  this._autoResize = val;
7218
- if (!this._initialized) {
7219
- return;
7220
- }
7221
7107
  if (val) {
7222
7108
  this._autoResizer.enable();
7223
7109
  } else {
@@ -7240,38 +7126,13 @@ var Flicking = /*#__PURE__*/function (_super) {
7240
7126
  },
7241
7127
  set: function (val) {
7242
7128
  this._useResizeObserver = val;
7243
- if (this._initialized && this._autoResize) {
7129
+ if (this._autoResize) {
7244
7130
  this._autoResizer.enable();
7245
7131
  }
7246
7132
  },
7247
7133
  enumerable: false,
7248
7134
  configurable: true
7249
7135
  });
7250
- Object.defineProperty(__proto, "observePanelResize", {
7251
- /**
7252
- * Whether to use {@link https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver ResizeObserver} to observe the size of the panel element
7253
- * This is only available when `useResizeObserver` is enabled.
7254
- * This option garantees that the resize event is triggered when the size of the panel element is changed.
7255
- * @ko 이 옵션을 활성화할 경우, {@link https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver ResizeObserver}를 사용하여 패널 엘리먼트의 크기를 추적합니다.
7256
- * 이 옵션은 `useResizeObserver` 옵션이 활성화된 경우에만 사용할 수 있습니다.
7257
- * 이 옵션은 패널 엘리먼트의 크기가 변경될 경우 resize 이벤트가 발생하도록 보장합니다.
7258
- */
7259
- get: function () {
7260
- return this._observePanelResize;
7261
- },
7262
- set: function (val) {
7263
- this._observePanelResize = val;
7264
- if (this._initialized && this._autoResize) {
7265
- if (val) {
7266
- this._autoResizer.observePanels();
7267
- } else {
7268
- this._autoResizer.unobservePanels();
7269
- }
7270
- }
7271
- },
7272
- enumerable: false,
7273
- configurable: true
7274
- });
7275
7136
  Object.defineProperty(__proto, "resizeDebounce", {
7276
7137
  /**
7277
7138
  * Delays size recalculation from `autoResize` by the given time in milisecond.
@@ -7353,30 +7214,6 @@ var Flicking = /*#__PURE__*/function (_super) {
7353
7214
  enumerable: false,
7354
7215
  configurable: true
7355
7216
  });
7356
- Object.defineProperty(__proto, "optimizeSizeUpdate", {
7357
- /**
7358
- * This option works only when autoResize is set to true.
7359
- * By default, autoResize listens to changes in both the viewport's width and height, updating all panel sizes accordingly.
7360
- * When optimizeSizeUpdate is enabled, the update behavior is optimized based on the flicking direction:
7361
- * If direction is "horizontal", only changes in width will trigger panel size updates.
7362
- * If direction is "vertical", only changes in height will do so.
7363
- * This option is useful when panel heights vary and unwanted flickering occurs due to frequent size recalculations during flicking. Enabling optimizeSizeUpdate prevents unnecessary updates and helps maintain visual stability.
7364
- * @ko optimizeSizeUpdate는 autoResize가 true일 때만 동작합니다.
7365
- * 기본적으로 autoResize는 뷰포트의 width와 height 변화를 모두 감지하여 패널들의 사이즈를 업데이트합니다.
7366
- * 이 옵션을 활성화하면 플리킹 방향에 따라 필요한 차원(horizontal → width, vertical → height)에 대해서만 사이즈를 업데이트합니다.
7367
- * 내부 패널의 높이가 서로 다를 때, 플리킹 중 과도한 리사이징으로 인한 깜빡임 현상을 줄이는 데 유용합니다.
7368
- * @type {boolean}
7369
- * @default false
7370
- */
7371
- get: function () {
7372
- return this._optimizeSizeUpdate;
7373
- },
7374
- set: function (val) {
7375
- this._optimizeSizeUpdate = val;
7376
- },
7377
- enumerable: false,
7378
- configurable: true
7379
- });
7380
7217
  /**
7381
7218
  * Initialize Flicking and move to the default index
7382
7219
  * This is automatically called on Flicking's constructor when `autoInit` is true(default)
@@ -7815,8 +7652,6 @@ var Flicking = /*#__PURE__*/function (_super) {
7815
7652
  return __generator(this, function (_a) {
7816
7653
  switch (_a.label) {
7817
7654
  case 0:
7818
- if (this._isResizing) return [2 /*return*/];
7819
- this._isResizing = true;
7820
7655
  viewport = this._viewport;
7821
7656
  renderer = this._renderer;
7822
7657
  camera = this._camera;
@@ -7831,20 +7666,9 @@ var Flicking = /*#__PURE__*/function (_super) {
7831
7666
  element: viewport.element
7832
7667
  }));
7833
7668
  viewport.resize();
7834
- if (!this._optimizeSizeUpdate) return [3 /*break*/, 3];
7835
- if (!(this.horizontal && viewport.width !== prevWidth || !this.horizontal && viewport.height !== prevHeight)) return [3 /*break*/, 2];
7836
7669
  return [4 /*yield*/, renderer.forceRenderAllPanels()];
7837
7670
  case 1:
7838
- _a.sent();
7839
- _a.label = 2;
7840
- case 2:
7841
- return [3 /*break*/, 5];
7842
- case 3:
7843
- return [4 /*yield*/, renderer.forceRenderAllPanels()];
7844
- case 4:
7845
7671
  _a.sent(); // Render all panel elements, to update sizes
7846
- _a.label = 5;
7847
- case 5:
7848
7672
  if (!this._initialized) {
7849
7673
  return [2 /*return*/];
7850
7674
  }
@@ -7857,7 +7681,7 @@ var Flicking = /*#__PURE__*/function (_super) {
7857
7681
  camera.updatePanelOrder();
7858
7682
  camera.updateOffset();
7859
7683
  return [4 /*yield*/, renderer.render()];
7860
- case 6:
7684
+ case 2:
7861
7685
  _a.sent();
7862
7686
  if (!this._initialized) {
7863
7687
  return [2 /*return*/];
@@ -7880,7 +7704,6 @@ var Flicking = /*#__PURE__*/function (_super) {
7880
7704
  sizeChanged: sizeChanged,
7881
7705
  element: viewport.element
7882
7706
  }));
7883
- this._isResizing = false;
7884
7707
  return [2 /*return*/];
7885
7708
  }
7886
7709
  });
@@ -8100,7 +7923,7 @@ var Flicking = /*#__PURE__*/function (_super) {
8100
7923
  * Flicking.VERSION; // ex) 4.0.0
8101
7924
  * ```
8102
7925
  */
8103
- Flicking.VERSION = "4.13.1";
7926
+ Flicking.VERSION = "4.13.2-beta.0";
8104
7927
  return Flicking;
8105
7928
  }(Component);
8106
7929