@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@egjs/flicking",
3
- "version": "3.9.1",
3
+ "version": "3.9.2-beta.0",
4
4
  "description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.",
5
5
  "main": "dist/flicking.js",
6
6
  "module": "dist/flicking.esm.js",
@@ -1265,8 +1265,10 @@ export default class Viewport {
1265
1265
  // For each panels, clone itself while last panel's position + size is below viewport size
1266
1266
  const panels = panelManager.originalPanels();
1267
1267
  const reversedPanels = panels.concat().reverse();
1268
-
1269
1268
  const sumOriginalPanelSize = lastPanel.getPosition() + lastPanel.getSize() - firstPanel.getPosition() + gap;
1269
+
1270
+ if (sumOriginalPanelSize <= 0) return;
1271
+
1270
1272
  const relativeAnchorPosition = firstPanel.getRelativeAnchorPosition();
1271
1273
  const relativeHangerPosition = this.getRelativeHangerPosition();
1272
1274