@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
  import Component from '@egjs/component';
10
10
  import ImReady from '@egjs/imready';
@@ -3376,7 +3376,7 @@ function () {
3376
3376
  var relativeHangerPosition = this.getRelativeHangerPosition();
3377
3377
  var areaPrev = (relativeHangerPosition - relativeAnchorPosition) % sumOriginalPanelSize;
3378
3378
  var sizeSum = 0;
3379
- var panelAtLeftBoundary;
3379
+ var panelAtLeftBoundary = null;
3380
3380
 
3381
3381
  for (var _i = 0, reversedPanels_1 = reversedPanels; _i < reversedPanels_1.length; _i++) {
3382
3382
  var panel = reversedPanels_1[_i];
@@ -3395,7 +3395,7 @@ function () {
3395
3395
 
3396
3396
  var areaNext = (viewportSize - relativeHangerPosition + relativeAnchorPosition) % sumOriginalPanelSize;
3397
3397
  sizeSum = 0;
3398
- var panelAtRightBoundary;
3398
+ var panelAtRightBoundary = null;
3399
3399
 
3400
3400
  for (var _a = 0, panels_1 = panels; _a < panels_1.length; _a++) {
3401
3401
  var panel = panels_1[_a];
@@ -3413,7 +3413,7 @@ function () {
3413
3413
  } // Need one more set of clones on prev area of original panel 0
3414
3414
 
3415
3415
 
3416
- var needCloneOnPrev = panelAtLeftBoundary.getIndex() !== 0 && panelAtLeftBoundary.getIndex() <= panelAtRightBoundary.getIndex(); // Visible count of panel 0 on first screen
3416
+ var needCloneOnPrev = panelAtLeftBoundary && panelAtRightBoundary && panelAtLeftBoundary.getIndex() !== 0 && panelAtLeftBoundary.getIndex() <= panelAtRightBoundary.getIndex(); // Visible count of panel 0 on first screen
3417
3417
 
3418
3418
  var panel0OnFirstscreen = Math.ceil((relativeHangerPosition + firstPanel.getSize() - relativeAnchorPosition) / sumOriginalPanelSize) + Math.ceil((viewportSize - relativeHangerPosition + relativeAnchorPosition) / sumOriginalPanelSize) - 1; // duplication
3419
3419
 
@@ -5085,7 +5085,7 @@ function (_super) {
5085
5085
  */
5086
5086
 
5087
5087
 
5088
- Flicking.VERSION = "3.9.0";
5088
+ Flicking.VERSION = "3.9.1";
5089
5089
  /**
5090
5090
  * Direction constant - "PREV" or "NEXT"
5091
5091
  * @ko 방향 상수 - "PREV" 또는 "NEXT"