@egjs/flicking 4.14.1-beta.0 → 4.14.1-beta.3

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.14.1-beta.0
7
+ version: 4.14.1-beta.3
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'), require('@cfcs/core')) :
@@ -26,7 +26,7 @@ version: 4.14.1-beta.0
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, SuppressedError, Symbol */
29
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
30
30
 
31
31
  var extendStatics = function (d, b) {
32
32
  extendStatics = Object.setPrototypeOf || {
@@ -96,12 +96,8 @@ version: 4.14.1-beta.0
96
96
  f,
97
97
  y,
98
98
  t,
99
- g;
100
- return g = {
101
- next: verb(0),
102
- "throw": verb(1),
103
- "return": verb(2)
104
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
99
+ g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
100
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
105
101
  return this;
106
102
  }), g;
107
103
  function verb(n) {
@@ -2864,7 +2860,6 @@ version: 4.14.1-beta.0
2864
2860
  });
2865
2861
  });
2866
2862
  };
2867
-
2868
2863
  __proto._getPosition = function (panel, direction) {
2869
2864
  if (direction === void 0) {
2870
2865
  direction = DIRECTION.NONE;
@@ -5211,7 +5206,6 @@ version: 4.14.1-beta.0
5211
5206
  });
5212
5207
  });
5213
5208
  };
5214
-
5215
5209
  __proto._collectPanels = function () {
5216
5210
  var flicking = getFlickingAttached(this._flicking);
5217
5211
  var camera = flicking.camera;
@@ -7947,7 +7941,6 @@ version: 4.14.1-beta.0
7947
7941
  if (!this._initialized) {
7948
7942
  return [2 /*return*/];
7949
7943
  }
7950
-
7951
7944
  renderer.updatePanelSize();
7952
7945
  camera.updateAlignPos();
7953
7946
  camera.updateRange();
@@ -7961,7 +7954,6 @@ version: 4.14.1-beta.0
7961
7954
  if (!this._initialized) {
7962
7955
  return [2 /*return*/];
7963
7956
  }
7964
-
7965
7957
  if (control.animating) ; else {
7966
7958
  control.updatePosition(prevProgressInPanel);
7967
7959
  control.updateInput();
@@ -8199,7 +8191,7 @@ version: 4.14.1-beta.0
8199
8191
  * Flicking.VERSION; // ex) 4.0.0
8200
8192
  * ```
8201
8193
  */
8202
- Flicking.VERSION = "4.14.1-beta.0";
8194
+ Flicking.VERSION = "4.14.1-beta.3";
8203
8195
  return Flicking;
8204
8196
  }(Component);
8205
8197
 
@@ -8696,6 +8688,16 @@ version: 4.14.1-beta.0
8696
8688
  }
8697
8689
  if (diffResult.added.length > 0 || diffResult.removed.length > 0) {
8698
8690
  renderer.updateAfterPanelChange(added, removed);
8691
+ } else if (diffResult.ordered.length > 0) {
8692
+ var camera = flicking.camera;
8693
+ // 순서 변경으로 인한 index 변경 및 range 값 변경
8694
+ camera.updateRange();
8695
+ // index 변경으로 인한 카메라 위치 즉시 변경
8696
+ camera.updateOffset();
8697
+ // 순서 변경으로 인한 anchors 전부 업데이트
8698
+ camera.updateAnchors();
8699
+ // need panel 여부 재확인 필요
8700
+ camera.resetNeedPanelHistory();
8699
8701
  }
8700
8702
  });
8701
8703
  var batchInsert = function (renderer, diffResult, addedElements, startIdx, endIdx) {