@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.
@@ -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
  'use strict';
10
10
 
@@ -2915,8 +2915,9 @@ var SnapControl = /*#__PURE__*/function (_super) {
2915
2915
  if (snapDelta >= snapThreshold && snapDelta > 0) {
2916
2916
  // Move to anchor at position
2917
2917
  targetAnchor = this._findSnappedAnchor(position, anchorAtCamera);
2918
- } else if (absPosDelta >= flicking.threshold && absPosDelta > 0) {
2918
+ } else if (absPosDelta >= flicking.threshold && absPosDelta > 0 && anchorAtCamera === activeAnchor) {
2919
2919
  // Move to the adjacent panel
2920
+ // console.log("moveToPosition anchorAtCamera activeAnchor absPosDelta", camera.position, anchorAtCamera, activeAnchor, absPosDelta, snapThreshold)
2920
2921
  targetAnchor = this._findAdjacentAnchor(position, posDelta, anchorAtCamera);
2921
2922
  } else {
2922
2923
  // Fallback to nearest panel from current camera
@@ -2991,6 +2992,7 @@ var SnapControl = /*#__PURE__*/function (_super) {
2991
2992
  return anchorIncludePosition;
2992
2993
  }
2993
2994
  }
2995
+ // console.log("_findAdjacentAnchor", position, posDelta, anchorAtCamera)
2994
2996
  var adjacentAnchor = (_a = posDelta > 0 ? camera.getNextAnchor(anchorAtCamera) : camera.getPrevAnchor(anchorAtCamera)) !== null && _a !== void 0 ? _a : anchorAtCamera;
2995
2997
  return adjacentAnchor;
2996
2998
  };
@@ -7921,7 +7923,7 @@ var Flicking = /*#__PURE__*/function (_super) {
7921
7923
  * Flicking.VERSION; // ex) 4.0.0
7922
7924
  * ```
7923
7925
  */
7924
- Flicking.VERSION = "4.12.0";
7926
+ Flicking.VERSION = "4.12.1-beta.0";
7925
7927
  return Flicking;
7926
7928
  }(Component);
7927
7929