@egjs/flicking 4.12.1-beta.1 → 4.12.1-beta.2
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 +23 -6
- 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 +2 -2
- package/src/control/SnapControl.ts +3 -1
package/dist/flicking.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.1-beta.
|
|
7
|
+
version: 4.12.1-beta.2
|
|
8
8
|
*/
|
|
9
9
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@egjs/component'), require('@egjs/axes'), require('@egjs/imready')) :
|
|
@@ -2963,8 +2963,9 @@ version: 4.12.1-beta.1
|
|
|
2963
2963
|
if (snapDelta >= snapThreshold && snapDelta > 0) {
|
|
2964
2964
|
// Move to anchor at position
|
|
2965
2965
|
targetAnchor = this._findSnappedAnchor(position, anchorAtCamera);
|
|
2966
|
-
} else if (absPosDelta >= flicking.threshold && absPosDelta > 0) {
|
|
2966
|
+
} else if (absPosDelta >= flicking.threshold && absPosDelta > 0 && anchorAtCamera === activeAnchor) {
|
|
2967
2967
|
// Move to the adjacent panel
|
|
2968
|
+
// console.log("moveToPosition anchorAtCamera activeAnchor absPosDelta", camera.position, anchorAtCamera, activeAnchor, absPosDelta, snapThreshold)
|
|
2968
2969
|
targetAnchor = this._findAdjacentAnchor(position, posDelta, anchorAtCamera);
|
|
2969
2970
|
} else {
|
|
2970
2971
|
// Fallback to nearest panel from current camera
|
|
@@ -3039,6 +3040,7 @@ version: 4.12.1-beta.1
|
|
|
3039
3040
|
return anchorIncludePosition;
|
|
3040
3041
|
}
|
|
3041
3042
|
}
|
|
3043
|
+
// console.log("_findAdjacentAnchor", position, posDelta, anchorAtCamera)
|
|
3042
3044
|
var adjacentAnchor = (_a = posDelta > 0 ? camera.getNextAnchor(anchorAtCamera) : camera.getPrevAnchor(anchorAtCamera)) !== null && _a !== void 0 ? _a : anchorAtCamera;
|
|
3043
3045
|
return adjacentAnchor;
|
|
3044
3046
|
};
|
|
@@ -8017,7 +8019,7 @@ version: 4.12.1-beta.1
|
|
|
8017
8019
|
* Flicking.VERSION; // ex) 4.0.0
|
|
8018
8020
|
* ```
|
|
8019
8021
|
*/
|
|
8020
|
-
Flicking.VERSION = "4.12.1-beta.
|
|
8022
|
+
Flicking.VERSION = "4.12.1-beta.2";
|
|
8021
8023
|
return Flicking;
|
|
8022
8024
|
}(Component);
|
|
8023
8025
|
|