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
- return Boolean(this.state.options.whilePress);
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
- return Boolean(this.state.options.whilePress);
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);
@@ -45,6 +45,10 @@ function useScroll({
45
45
  onCleanup(() => {
46
46
  cleanup();
47
47
  });
48
+ },
49
+ {
50
+ immediate: true,
51
+ flush: "post"
48
52
  }
49
53
  );
50
54
  return values;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "motion-v",
3
- "version": "0.13.0-beta.2",
3
+ "version": "0.13.0-beta.4",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",