motion-v 0.13.0-beta.2 → 0.13.0-beta.4
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/cjs/index.js
CHANGED
|
@@ -4730,7 +4730,8 @@ function handlePressEvent(state2, event, lifecycle) {
|
|
|
4730
4730
|
}
|
|
4731
4731
|
class PressGesture extends Feature {
|
|
4732
4732
|
isActive() {
|
|
4733
|
-
|
|
4733
|
+
const { whilePress, onPress, onPressCancel, onPressStart } = this.state.options;
|
|
4734
|
+
return Boolean(whilePress || onPress || onPressCancel || onPressStart);
|
|
4734
4735
|
}
|
|
4735
4736
|
constructor(state2) {
|
|
4736
4737
|
super(state2);
|
|
@@ -8571,6 +8572,10 @@ function useScroll({
|
|
|
8571
8572
|
onCleanup(() => {
|
|
8572
8573
|
cleanup();
|
|
8573
8574
|
});
|
|
8575
|
+
},
|
|
8576
|
+
{
|
|
8577
|
+
immediate: true,
|
|
8578
|
+
flush: "post"
|
|
8574
8579
|
}
|
|
8575
8580
|
);
|
|
8576
8581
|
return values;
|
|
@@ -21,7 +21,8 @@ function handlePressEvent(state, event, lifecycle) {
|
|
|
21
21
|
}
|
|
22
22
|
class PressGesture extends Feature {
|
|
23
23
|
isActive() {
|
|
24
|
-
|
|
24
|
+
const { whilePress, onPress, onPressCancel, onPressStart } = this.state.options;
|
|
25
|
+
return Boolean(whilePress || onPress || onPressCancel || onPressStart);
|
|
25
26
|
}
|
|
26
27
|
constructor(state) {
|
|
27
28
|
super(state);
|