@egjs/flicking 4.11.5-beta.2 → 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.2
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.2
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.2
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.2
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.2
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.
@@ -8292,8 +8296,6 @@ version: 4.11.5-beta.2
8292
8296
  */
8293
8297
  __proto.lookAt = function (pos) {
8294
8298
  var _this = this;
8295
- var prevOffset = this._offset;
8296
- var isChangedOffset = this._lookedOffset !== prevOffset;
8297
8299
  var flicking = getFlickingAttached(this._flicking);
8298
8300
  var prevPos = this._position;
8299
8301
  this._position = pos;
@@ -8301,15 +8303,10 @@ version: 4.11.5-beta.2
8301
8303
  this._refreshVisiblePanels();
8302
8304
  this._checkNeedPanel();
8303
8305
  this._checkReachEnd(prevPos, pos);
8304
- if (isChangedOffset || toggled) {
8306
+ if (toggled) {
8305
8307
  void flicking.renderer.render().then(function () {
8306
8308
  _this.updateOffset();
8307
- _this._lookedOffset = _this._offset;
8308
8309
  });
8309
- } else if (isChangedOffset) {
8310
- // sync offset for renderOnlyVisible on resize
8311
- this.updateOffset();
8312
- this._lookedOffset = this._offset;
8313
8310
  } else {
8314
8311
  this.applyTransform();
8315
8312
  }
@@ -12962,7 +12959,7 @@ version: 4.11.5-beta.2
12962
12959
  * Flicking.VERSION; // ex) 4.0.0
12963
12960
  * ```
12964
12961
  */
12965
- Flicking.VERSION = "4.11.5-beta.2";
12962
+ Flicking.VERSION = "4.11.5-beta.4";
12966
12963
  return Flicking;
12967
12964
  }(Component);
12968
12965
 
@@ -13105,7 +13102,7 @@ version: 4.11.5-beta.2
13105
13102
  }
13106
13103
  });
13107
13104
  if (startIdx_1 >= 0) {
13108
- 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)));
13109
13106
  }
13110
13107
  }
13111
13108
  if (diffResult.added.length > 0 || diffResult.removed.length > 0) {