@egjs/flicking 3.9.1 → 3.9.2-beta.0

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.1
7
+ version: 3.9.2-beta.0
8
8
  */
9
9
  import Component from '@egjs/component';
10
10
  import ImReady from '@egjs/imready';
@@ -3372,6 +3372,7 @@ function () {
3372
3372
  var panels = panelManager.originalPanels();
3373
3373
  var reversedPanels = panels.concat().reverse();
3374
3374
  var sumOriginalPanelSize = lastPanel.getPosition() + lastPanel.getSize() - firstPanel.getPosition() + gap;
3375
+ if (sumOriginalPanelSize <= 0) return;
3375
3376
  var relativeAnchorPosition = firstPanel.getRelativeAnchorPosition();
3376
3377
  var relativeHangerPosition = this.getRelativeHangerPosition();
3377
3378
  var areaPrev = (relativeHangerPosition - relativeAnchorPosition) % sumOriginalPanelSize;
@@ -5085,7 +5086,7 @@ function (_super) {
5085
5086
  */
5086
5087
 
5087
5088
 
5088
- Flicking.VERSION = "3.9.1";
5089
+ Flicking.VERSION = "3.9.2-beta.0";
5089
5090
  /**
5090
5091
  * Direction constant - "PREV" or "NEXT"
5091
5092
  * @ko 방향 상수 - "PREV" 또는 "NEXT"