@tamagui/react-native-pan-responder 3.0.0-beta.1670.1 → 3.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/react-native-pan-responder",
3
- "version": "3.0.0-beta.1670.1",
3
+ "version": "3.0.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "src",
@@ -34,11 +34,11 @@
34
34
  "clean:build": "tamagui-build clean:build"
35
35
  },
36
36
  "dependencies": {
37
- "@tamagui/react-native-types": "3.0.0-beta.1670.1",
38
- "@tamagui/react-native-use-responder-events": "3.0.0-beta.1670.1"
37
+ "@tamagui/react-native-types": "3.0.0",
38
+ "@tamagui/react-native-use-responder-events": "3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@tamagui/build": "3.0.0-beta.1670.1",
41
+ "@tamagui/build": "3.0.0",
42
42
  "react": "19.2.3"
43
43
  },
44
44
  "peerDependencies": {
@@ -49,5 +49,5 @@
49
49
  "url": "git+https://github.com/tamagui/tamagui.git",
50
50
  "directory": "code/core/react-native-pan-responder"
51
51
  },
52
- "releaseSourceCommit": "23b9b37ef498bb7ebe306138c1d635a807db8ac1"
52
+ "releaseSourceCommit": "15fbca480b143f876f6975601e23a17d3f90d2ee"
53
53
  }
@@ -30,7 +30,11 @@ import {
30
30
  // only field this reads off it is `touchHistory`.
31
31
  type Handler = (event: ResponderEvent) => any
32
32
 
33
- function initializeGestureState(gestureState: PanResponderGestureState) {
33
+ type InternalGestureState = PanResponderGestureState & {
34
+ _accountsForMovesUpTo: number
35
+ }
36
+
37
+ function initializeGestureState(gestureState: InternalGestureState) {
34
38
  gestureState.moveX = 0
35
39
  gestureState.moveY = 0
36
40
  gestureState.x0 = 0
@@ -44,7 +48,7 @@ function initializeGestureState(gestureState: PanResponderGestureState) {
44
48
  }
45
49
 
46
50
  function updateGestureStateOnMove(
47
- gestureState: PanResponderGestureState,
51
+ gestureState: InternalGestureState,
48
52
  touchHistory: TouchHistory
49
53
  ) {
50
54
  gestureState.numberActiveTouches = touchHistory.numberActiveTouches
@@ -92,7 +96,7 @@ export const PanResponder = {
92
96
  timeout: undefined as ReturnType<typeof setTimeout> | undefined,
93
97
  }
94
98
 
95
- const gestureState: PanResponderGestureState = {
99
+ const gestureState: InternalGestureState = {
96
100
  stateID: Math.random(),
97
101
  moveX: 0,
98
102
  moveY: 0,
@@ -1 +1 @@
1
- {"version":3,"file":"PanResponder.d.ts","sourceRoot":"","sources":["../src/PanResponder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EACV,kBAAkB,EAGlB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AA0DhB;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY;IACvB,MAAM,SAAS,kBAAkB,GAAG,oBAAoB;CAmIzD,CAAA"}
1
+ {"version":3,"file":"PanResponder.d.ts","sourceRoot":"","sources":["../src/PanResponder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EACV,kBAAkB,EAGlB,oBAAoB,EACrB,MAAM,SAAS,CAAA;AA8DhB;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY;IACvB,MAAM,SAAS,kBAAkB,GAAG,oBAAoB;CAmIzD,CAAA"}