flemo 1.1.0 → 1.1.1
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/index.mjs +22 -19
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -464,25 +464,28 @@ const It = K({
|
|
|
464
464
|
},
|
|
465
465
|
onSwipeEnd: async (n, e, { currentScreen: t, prevScreen: a, onStart: r }) => {
|
|
466
466
|
const { offset: s, velocity: o } = e, c = s.x > 50 || o.x > 20;
|
|
467
|
-
return r?.(c),
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
467
|
+
return r?.(c), await Promise.all([
|
|
468
|
+
M(
|
|
469
|
+
t,
|
|
470
|
+
{
|
|
471
|
+
x: c ? "100%" : 0
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
duration: 0.3,
|
|
475
|
+
ease: [0.32, 0.72, 0, 1]
|
|
476
|
+
}
|
|
477
|
+
),
|
|
478
|
+
M(
|
|
479
|
+
a,
|
|
480
|
+
{
|
|
481
|
+
x: c ? 0 : -100
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
duration: 0.3,
|
|
485
|
+
ease: [0.32, 0.72, 0, 1]
|
|
486
|
+
}
|
|
487
|
+
)
|
|
488
|
+
]), c;
|
|
486
489
|
}
|
|
487
490
|
}
|
|
488
491
|
}), Mt = K({
|