@egjs/flicking 4.12.0 → 4.12.1-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/dist/flicking.cjs.js +5 -3
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +5 -3
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +5 -3
- package/dist/flicking.js.map +1 -1
- package/dist/flicking.min.js +2 -2
- package/dist/flicking.min.js.map +1 -1
- package/dist/flicking.pkgd.js +5 -3
- package/dist/flicking.pkgd.js.map +1 -1
- package/dist/flicking.pkgd.min.js +2 -2
- package/dist/flicking.pkgd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/control/SnapControl.ts +3 -1
package/dist/flicking.pkgd.js
CHANGED
|
@@ -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: 4.12.0
|
|
7
|
+
version: 4.12.1-beta.0
|
|
8
8
|
*/
|
|
9
9
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -7128,8 +7128,9 @@ version: 4.12.0
|
|
|
7128
7128
|
if (snapDelta >= snapThreshold && snapDelta > 0) {
|
|
7129
7129
|
// Move to anchor at position
|
|
7130
7130
|
targetAnchor = this._findSnappedAnchor(position, anchorAtCamera);
|
|
7131
|
-
} else if (absPosDelta >= flicking.threshold && absPosDelta > 0) {
|
|
7131
|
+
} else if (absPosDelta >= flicking.threshold && absPosDelta > 0 && anchorAtCamera === activeAnchor) {
|
|
7132
7132
|
// Move to the adjacent panel
|
|
7133
|
+
// console.log("moveToPosition anchorAtCamera activeAnchor absPosDelta", camera.position, anchorAtCamera, activeAnchor, absPosDelta, snapThreshold)
|
|
7133
7134
|
targetAnchor = this._findAdjacentAnchor(position, posDelta, anchorAtCamera);
|
|
7134
7135
|
} else {
|
|
7135
7136
|
// Fallback to nearest panel from current camera
|
|
@@ -7204,6 +7205,7 @@ version: 4.12.0
|
|
|
7204
7205
|
return anchorIncludePosition;
|
|
7205
7206
|
}
|
|
7206
7207
|
}
|
|
7208
|
+
// console.log("_findAdjacentAnchor", position, posDelta, anchorAtCamera)
|
|
7207
7209
|
var adjacentAnchor = (_a = posDelta > 0 ? camera.getNextAnchor(anchorAtCamera) : camera.getPrevAnchor(anchorAtCamera)) !== null && _a !== void 0 ? _a : anchorAtCamera;
|
|
7208
7210
|
return adjacentAnchor;
|
|
7209
7211
|
};
|
|
@@ -13052,7 +13054,7 @@ version: 4.12.0
|
|
|
13052
13054
|
* Flicking.VERSION; // ex) 4.0.0
|
|
13053
13055
|
* ```
|
|
13054
13056
|
*/
|
|
13055
|
-
Flicking.VERSION = "4.12.0";
|
|
13057
|
+
Flicking.VERSION = "4.12.1-beta.0";
|
|
13056
13058
|
return Flicking;
|
|
13057
13059
|
}(Component);
|
|
13058
13060
|
|