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