@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,13 +4,13 @@ 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
  import Component, { ComponentEvent } from '@egjs/component';
10
10
  import Axes, { PanInput } from '@egjs/axes';
11
11
  import ImReady from '@egjs/imready';
12
12
 
13
- /*! *****************************************************************************
13
+ /******************************************************************************
14
14
  Copyright (c) Microsoft Corporation.
15
15
 
16
16
  Permission to use, copy, modify, and/or distribute this software for any
@@ -24,7 +24,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24
24
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25
25
  PERFORMANCE OF THIS SOFTWARE.
26
26
  ***************************************************************************** */
27
- /* global Reflect, Promise */
27
+ /* global Reflect, Promise, SuppressedError, Symbol */
28
28
 
29
29
  var extendStatics = function (d, b) {
30
30
  extendStatics = Object.setPrototypeOf || {
@@ -109,7 +109,7 @@ function __generator(thisArg, body) {
109
109
  }
110
110
  function step(op) {
111
111
  if (f) throw new TypeError("Generator is already executing.");
112
- while (_) try {
112
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
113
113
  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;
114
114
  if (y = 0, t) op = [op[0] & 2, t.value];
115
115
  switch (op[0]) {
@@ -213,6 +213,10 @@ function __spread() {
213
213
  for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
214
214
  return ar;
215
215
  }
216
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
217
+ var e = new Error(message);
218
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
219
+ };
216
220
 
217
221
  /*
218
222
  * Copyright (c) 2015 NAVER Corp.
@@ -4066,8 +4070,6 @@ var Camera = /*#__PURE__*/function () {
4066
4070
  */
4067
4071
  __proto.lookAt = function (pos) {
4068
4072
  var _this = this;
4069
- var prevOffset = this._offset;
4070
- var isChangedOffset = this._lookedOffset !== prevOffset;
4071
4073
  var flicking = getFlickingAttached(this._flicking);
4072
4074
  var prevPos = this._position;
4073
4075
  this._position = pos;
@@ -4075,15 +4077,10 @@ var Camera = /*#__PURE__*/function () {
4075
4077
  this._refreshVisiblePanels();
4076
4078
  this._checkNeedPanel();
4077
4079
  this._checkReachEnd(prevPos, pos);
4078
- if (isChangedOffset || toggled) {
4080
+ if (toggled) {
4079
4081
  void flicking.renderer.render().then(function () {
4080
4082
  _this.updateOffset();
4081
- _this._lookedOffset = _this._offset;
4082
4083
  });
4083
- } else if (isChangedOffset) {
4084
- // sync offset for renderOnlyVisible on resize
4085
- this.updateOffset();
4086
- this._lookedOffset = this._offset;
4087
4084
  } else {
4088
4085
  this.applyTransform();
4089
4086
  }
@@ -7839,7 +7836,7 @@ var Flicking = /*#__PURE__*/function (_super) {
7839
7836
  * Flicking.VERSION; // ex) 4.0.0
7840
7837
  * ```
7841
7838
  */
7842
- Flicking.VERSION = "4.11.5-beta.2";
7839
+ Flicking.VERSION = "4.11.5-beta.4";
7843
7840
  return Flicking;
7844
7841
  }(Component);
7845
7842
 
@@ -7965,7 +7962,7 @@ var sync = (function (flicking, diffResult, rendered) {
7965
7962
  }
7966
7963
  });
7967
7964
  if (startIdx_1 >= 0) {
7968
- added.push.apply(added, __spread(batchInsert(renderer, diffResult, addedElements_1, startIdx_1)));
7965
+ added.push.apply(added, __spread(batchInsert(renderer, diffResult, addedElements_1.slice(startIdx_1), startIdx_1)));
7969
7966
  }
7970
7967
  }
7971
7968
  if (diffResult.added.length > 0 || diffResult.removed.length > 0) {