@egjs/flicking 4.11.5-beta.3 → 4.11.5-beta.4

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.
@@ -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.11.5-beta.3
7
+ version: 4.11.5-beta.4
8
8
  */
9
9
  (function (global, factory) {
10
10
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -12,7 +12,7 @@ version: 4.11.5-beta.3
12
12
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Flicking = factory());
13
13
  })(this, (function () { 'use strict';
14
14
 
15
- /*! *****************************************************************************
15
+ /******************************************************************************
16
16
  Copyright (c) Microsoft Corporation.
17
17
 
18
18
  Permission to use, copy, modify, and/or distribute this software for any
@@ -26,7 +26,7 @@ version: 4.11.5-beta.3
26
26
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
27
27
  PERFORMANCE OF THIS SOFTWARE.
28
28
  ***************************************************************************** */
29
- /* global Reflect, Promise */
29
+ /* global Reflect, Promise, SuppressedError, Symbol */
30
30
 
31
31
  var extendStatics$3 = function (d, b) {
32
32
  extendStatics$3 = Object.setPrototypeOf || {
@@ -111,7 +111,7 @@ version: 4.11.5-beta.3
111
111
  }
112
112
  function step(op) {
113
113
  if (f) throw new TypeError("Generator is already executing.");
114
- while (_) try {
114
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
115
115
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
116
116
  if (y = 0, t) op = [op[0] & 2, t.value];
117
117
  switch (op[0]) {
@@ -215,6 +215,10 @@ version: 4.11.5-beta.3
215
215
  for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$1(arguments[i]));
216
216
  return ar;
217
217
  }
218
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
219
+ var e = new Error(message);
220
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
221
+ };
218
222
 
219
223
  /*
220
224
  Copyright (c) NAVER Corp.
@@ -7933,7 +7937,6 @@ version: 4.11.5-beta.3
7933
7937
  var _this = this;
7934
7938
  var _b = (_a === void 0 ? {} : _a).align,
7935
7939
  align = _b === void 0 ? ALIGN.CENTER : _b;
7936
- this._lookedOffset = 0;
7937
7940
  this._checkTranslateSupport = function () {
7938
7941
  var e_1, _a;
7939
7942
  var transforms = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"];
@@ -8293,8 +8296,6 @@ version: 4.11.5-beta.3
8293
8296
  */
8294
8297
  __proto.lookAt = function (pos) {
8295
8298
  var _this = this;
8296
- var prevOffset = this._offset;
8297
- var isChangedOffset = this._lookedOffset !== prevOffset;
8298
8299
  var flicking = getFlickingAttached(this._flicking);
8299
8300
  var prevPos = this._position;
8300
8301
  this._position = pos;
@@ -8302,15 +8303,10 @@ version: 4.11.5-beta.3
8302
8303
  this._refreshVisiblePanels();
8303
8304
  this._checkNeedPanel();
8304
8305
  this._checkReachEnd(prevPos, pos);
8305
- if (isChangedOffset || toggled) {
8306
+ if (toggled) {
8306
8307
  void flicking.renderer.render().then(function () {
8307
8308
  _this.updateOffset();
8308
- _this._lookedOffset = _this._offset;
8309
8309
  });
8310
- } else if (isChangedOffset) {
8311
- // sync offset for renderOnlyVisible on resize
8312
- this.updateOffset();
8313
- this._lookedOffset = this._offset;
8314
8310
  } else {
8315
8311
  this.applyTransform();
8316
8312
  }
@@ -8569,7 +8565,6 @@ version: 4.11.5-beta.3
8569
8565
  };
8570
8566
  __proto._resetInternalValues = function () {
8571
8567
  this._position = 0;
8572
- this._lookedOffset = 0;
8573
8568
  this._alignPos = 0;
8574
8569
  this._offset = 0;
8575
8570
  this._circularOffset = 0;
@@ -12964,7 +12959,7 @@ version: 4.11.5-beta.3
12964
12959
  * Flicking.VERSION; // ex) 4.0.0
12965
12960
  * ```
12966
12961
  */
12967
- Flicking.VERSION = "4.11.5-beta.3";
12962
+ Flicking.VERSION = "4.11.5-beta.4";
12968
12963
  return Flicking;
12969
12964
  }(Component);
12970
12965
 
@@ -13107,7 +13102,7 @@ version: 4.11.5-beta.3
13107
13102
  }
13108
13103
  });
13109
13104
  if (startIdx_1 >= 0) {
13110
- added.push.apply(added, __spread$1(batchInsert(renderer, diffResult, addedElements_1, startIdx_1)));
13105
+ added.push.apply(added, __spread$1(batchInsert(renderer, diffResult, addedElements_1.slice(startIdx_1), startIdx_1)));
13111
13106
  }
13112
13107
  }
13113
13108
  if (diffResult.added.length > 0 || diffResult.removed.length > 0) {