@egjs/flicking 3.9.0 → 3.9.1

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: 3.9.0
7
+ version: 3.9.1
8
8
  */
9
9
  (function (global, factory) {
10
10
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -9707,7 +9707,7 @@ version: 3.9.0
9707
9707
  var relativeHangerPosition = this.getRelativeHangerPosition();
9708
9708
  var areaPrev = (relativeHangerPosition - relativeAnchorPosition) % sumOriginalPanelSize;
9709
9709
  var sizeSum = 0;
9710
- var panelAtLeftBoundary;
9710
+ var panelAtLeftBoundary = null;
9711
9711
 
9712
9712
  for (var _i = 0, reversedPanels_1 = reversedPanels; _i < reversedPanels_1.length; _i++) {
9713
9713
  var panel = reversedPanels_1[_i];
@@ -9726,7 +9726,7 @@ version: 3.9.0
9726
9726
 
9727
9727
  var areaNext = (viewportSize - relativeHangerPosition + relativeAnchorPosition) % sumOriginalPanelSize;
9728
9728
  sizeSum = 0;
9729
- var panelAtRightBoundary;
9729
+ var panelAtRightBoundary = null;
9730
9730
 
9731
9731
  for (var _a = 0, panels_1 = panels; _a < panels_1.length; _a++) {
9732
9732
  var panel = panels_1[_a];
@@ -9744,7 +9744,7 @@ version: 3.9.0
9744
9744
  } // Need one more set of clones on prev area of original panel 0
9745
9745
 
9746
9746
 
9747
- var needCloneOnPrev = panelAtLeftBoundary.getIndex() !== 0 && panelAtLeftBoundary.getIndex() <= panelAtRightBoundary.getIndex(); // Visible count of panel 0 on first screen
9747
+ var needCloneOnPrev = panelAtLeftBoundary && panelAtRightBoundary && panelAtLeftBoundary.getIndex() !== 0 && panelAtLeftBoundary.getIndex() <= panelAtRightBoundary.getIndex(); // Visible count of panel 0 on first screen
9748
9748
 
9749
9749
  var panel0OnFirstscreen = Math.ceil((relativeHangerPosition + firstPanel.getSize() - relativeAnchorPosition) / sumOriginalPanelSize) + Math.ceil((viewportSize - relativeHangerPosition + relativeAnchorPosition) / sumOriginalPanelSize) - 1; // duplication
9750
9750
 
@@ -11416,7 +11416,7 @@ version: 3.9.0
11416
11416
  */
11417
11417
 
11418
11418
 
11419
- Flicking.VERSION = "3.9.0";
11419
+ Flicking.VERSION = "3.9.1";
11420
11420
  /**
11421
11421
  * Direction constant - "PREV" or "NEXT"
11422
11422
  * @ko 방향 상수 - "PREV" 또는 "NEXT"