flemo 1.1.1 → 1.1.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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1047,7 +1047,7 @@ function Ht({
1047
1047
  T.current = !1, G.current = !0, p.start(f);
1048
1048
  else if (T.current && !y) {
1049
1049
  const g = f.clientX - V.current, k = f.clientY - W.current, ht = N.current.element && N.current.element.scrollTop <= 0 && N.current.hasMarker, mt = D.current.element && D.current.element.scrollLeft <= 0 && D.current.hasMarker;
1050
- (S === "y" && (ht || D.current.element) && k > 0 && g < 2 || S === "x" && (mt || N.current.element) && g > 0 && k < 2) && (T.current = !1, G.current = !0, p.start(f));
1050
+ (S === "y" && (ht || D.current.element) && k > 0 && Math.abs(g) < 4 || S === "x" && (mt || N.current.element) && g > 0 && Math.abs(k) < 4) && (T.current = !1, G.current = !0, p.start(f));
1051
1051
  }
1052
1052
  }, ft = () => {
1053
1053
  T.current = !1, G.current = !1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flemo",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A modern React router library with built-in motion animations and smooth transitions",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",