@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.
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.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(require('@egjs/component'), require('@egjs/axes'), require('@egjs/imready')) :
@@ -12,7 +12,7 @@ version: 4.11.5-beta.2
12
12
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Flicking = factory(global.eg.Component, global.eg.Axes, global.eg.ImReady));
13
13
  })(this, (function (Component, Axes, ImReady) { '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 = function (d, b) {
32
32
  extendStatics = 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(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) 2015 NAVER Corp.
@@ -4134,8 +4138,6 @@ version: 4.11.5-beta.2
4134
4138
  */
4135
4139
  __proto.lookAt = function (pos) {
4136
4140
  var _this = this;
4137
- var prevOffset = this._offset;
4138
- var isChangedOffset = this._lookedOffset !== prevOffset;
4139
4141
  var flicking = getFlickingAttached(this._flicking);
4140
4142
  var prevPos = this._position;
4141
4143
  this._position = pos;
@@ -4143,15 +4145,10 @@ version: 4.11.5-beta.2
4143
4145
  this._refreshVisiblePanels();
4144
4146
  this._checkNeedPanel();
4145
4147
  this._checkReachEnd(prevPos, pos);
4146
- if (isChangedOffset || toggled) {
4148
+ if (toggled) {
4147
4149
  void flicking.renderer.render().then(function () {
4148
4150
  _this.updateOffset();
4149
- _this._lookedOffset = _this._offset;
4150
4151
  });
4151
- } else if (isChangedOffset) {
4152
- // sync offset for renderOnlyVisible on resize
4153
- this.updateOffset();
4154
- this._lookedOffset = this._offset;
4155
4152
  } else {
4156
4153
  this.applyTransform();
4157
4154
  }
@@ -7934,7 +7931,7 @@ version: 4.11.5-beta.2
7934
7931
  * Flicking.VERSION; // ex) 4.0.0
7935
7932
  * ```
7936
7933
  */
7937
- Flicking.VERSION = "4.11.5-beta.2";
7934
+ Flicking.VERSION = "4.11.5-beta.4";
7938
7935
  return Flicking;
7939
7936
  }(Component);
7940
7937
 
@@ -8077,7 +8074,7 @@ version: 4.11.5-beta.2
8077
8074
  }
8078
8075
  });
8079
8076
  if (startIdx_1 >= 0) {
8080
- added.push.apply(added, __spread(batchInsert(renderer, diffResult, addedElements_1, startIdx_1)));
8077
+ added.push.apply(added, __spread(batchInsert(renderer, diffResult, addedElements_1.slice(startIdx_1), startIdx_1)));
8081
8078
  }
8082
8079
  }
8083
8080
  if (diffResult.added.length > 0 || diffResult.removed.length > 0) {