@egjs/flicking
Advanced tools
Comparing version 4.11.1 to 4.11.2-beta.0
@@ -11,2 +11,3 @@ import { OnRelease } from "@egjs/axes"; | ||
protected _activePanel: Panel | null; | ||
protected _nextPanel: Panel | null; | ||
get controller(): AxesController; | ||
@@ -13,0 +14,0 @@ get activeIndex(): number; |
{ | ||
"name": "@egjs/flicking", | ||
"version": "4.11.1", | ||
"version": "4.11.2-beta.0", | ||
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.", | ||
@@ -5,0 +5,0 @@ "main": "dist/flicking.cjs.js", |
@@ -26,2 +26,3 @@ /* | ||
protected _activePanel: Panel | null; | ||
protected _nextPanel: Panel | null; | ||
@@ -321,2 +322,3 @@ /** | ||
this._activePanel = newActivePanel; | ||
this._nextPanel = null; | ||
@@ -362,2 +364,4 @@ flicking.camera.updateAdaptiveHeight(); | ||
}); | ||
this._nextPanel = panel; | ||
flicking.trigger(event); | ||
@@ -364,0 +368,0 @@ |
@@ -193,3 +193,3 @@ /* | ||
const camera = flicking.camera; | ||
const activePanel = this._activePanel; | ||
const currentPanel = this._nextPanel ?? this._activePanel; | ||
const axesRange = this._controller.range; | ||
@@ -203,7 +203,7 @@ const indexRange = this._indexRange; | ||
if (!anchorAtPosition || !activePanel) { | ||
if (!anchorAtPosition || !currentPanel) { | ||
return Promise.reject(new FlickingError(ERROR.MESSAGE.POSITION_NOT_REACHABLE(position), ERROR.CODE.POSITION_NOT_REACHABLE)); | ||
} | ||
const prevPos = activePanel.position; | ||
const prevPos = currentPanel.position; | ||
const posDelta = flicking.animating | ||
@@ -238,3 +238,3 @@ ? state.delta | ||
targetPos = targetAnchor.position; | ||
} else if (isOverThreshold && anchorAtPosition.position !== activePanel.position) { | ||
} else if (isOverThreshold && anchorAtPosition.position !== currentPanel.position) { | ||
// Move to anchor at position | ||
@@ -241,0 +241,0 @@ targetPanel = anchorAtPosition.panel; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5054941
47625
2