@tamagui/react-native-web-lite 1.125.6 → 1.125.8

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 (274) hide show
  1. package/dist/esm/AccessibilityInfo/index.native.js +58 -62
  2. package/dist/esm/AccessibilityInfo/index.native.js.map +1 -6
  3. package/dist/esm/ActivityIndicator/__tests__/index-test.native.js +85 -55
  4. package/dist/esm/ActivityIndicator/__tests__/index-test.native.js.map +1 -6
  5. package/dist/esm/ActivityIndicator/index.native.js +82 -90
  6. package/dist/esm/ActivityIndicator/index.native.js.map +1 -6
  7. package/dist/esm/Alert/index.native.js +14 -18
  8. package/dist/esm/Alert/index.native.js.map +1 -6
  9. package/dist/esm/AppRegistry/AppContainer.native.js +30 -26
  10. package/dist/esm/AppRegistry/AppContainer.native.js.map +1 -6
  11. package/dist/esm/AppRegistry/__tests__/index-test.native.js +13 -13
  12. package/dist/esm/AppRegistry/__tests__/index-test.native.js.map +1 -6
  13. package/dist/esm/AppRegistry/__tests__/index-test.node.native.js +45 -34
  14. package/dist/esm/AppRegistry/__tests__/index-test.node.native.js.map +1 -6
  15. package/dist/esm/AppRegistry/index.native.js +50 -55
  16. package/dist/esm/AppRegistry/index.native.js.map +1 -6
  17. package/dist/esm/AppRegistry/renderApplication.native.js +33 -27
  18. package/dist/esm/AppRegistry/renderApplication.native.js.map +1 -6
  19. package/dist/esm/AppState/__tests__/index-test.native.js +9 -10
  20. package/dist/esm/AppState/__tests__/index-test.native.js.map +1 -6
  21. package/dist/esm/AppState/index.native.js +45 -51
  22. package/dist/esm/AppState/index.native.js.map +1 -6
  23. package/dist/esm/Appearance/index.native.js +27 -24
  24. package/dist/esm/Appearance/index.native.js.map +1 -6
  25. package/dist/esm/BackHandler/index.native.js +11 -13
  26. package/dist/esm/BackHandler/index.native.js.map +1 -6
  27. package/dist/esm/Batchinator/index.native.js +19 -23
  28. package/dist/esm/Batchinator/index.native.js.map +1 -6
  29. package/dist/esm/Clipboard/index.native.js +21 -26
  30. package/dist/esm/Clipboard/index.native.js.map +1 -6
  31. package/dist/esm/DeviceEmitter.native.js +3 -5
  32. package/dist/esm/DeviceEmitter.native.js.map +1 -6
  33. package/dist/esm/DeviceInfo/index.native.js +41 -33
  34. package/dist/esm/DeviceInfo/index.native.js.map +1 -6
  35. package/dist/esm/Dimensions/__tests__/index-test.native.js +9 -8
  36. package/dist/esm/Dimensions/__tests__/index-test.native.js.map +1 -6
  37. package/dist/esm/Dimensions/index.native.js +49 -53
  38. package/dist/esm/Dimensions/index.native.js.map +1 -6
  39. package/dist/esm/FlatList.native.js +137 -131
  40. package/dist/esm/FlatList.native.js.map +1 -6
  41. package/dist/esm/I18nManager/index.native.js +10 -13
  42. package/dist/esm/I18nManager/index.native.js.map +1 -6
  43. package/dist/esm/Image/index.native.js +174 -149
  44. package/dist/esm/Image/index.native.js.map +1 -6
  45. package/dist/esm/Image/types.native.js +2 -1
  46. package/dist/esm/Image/types.native.js.map +1 -6
  47. package/dist/esm/ImageBackground/__tests__/index-test.native.js +27 -19
  48. package/dist/esm/ImageBackground/__tests__/index-test.native.js.map +1 -6
  49. package/dist/esm/ImageBackground/index.native.js +35 -33
  50. package/dist/esm/ImageBackground/index.native.js.map +1 -6
  51. package/dist/esm/InteractionManager/TaskQueue.native.js +46 -51
  52. package/dist/esm/InteractionManager/TaskQueue.native.js.map +1 -6
  53. package/dist/esm/InteractionManager/index.native.js +66 -60
  54. package/dist/esm/InteractionManager/index.native.js.map +1 -6
  55. package/dist/esm/Keyboard/index.native.js +13 -17
  56. package/dist/esm/Keyboard/index.native.js.map +1 -6
  57. package/dist/esm/KeyboardAvoidingView/index.native.js +34 -44
  58. package/dist/esm/KeyboardAvoidingView/index.native.js.map +1 -6
  59. package/dist/esm/Linking/__tests__/index-test.native.js +9 -9
  60. package/dist/esm/Linking/__tests__/index-test.native.js.map +1 -6
  61. package/dist/esm/Linking/index.native.js +42 -49
  62. package/dist/esm/Linking/index.native.js.map +1 -6
  63. package/dist/esm/LogBox/index.native.js +7 -12
  64. package/dist/esm/LogBox/index.native.js.map +1 -6
  65. package/dist/esm/Modal/ModalAnimation.native.js +89 -112
  66. package/dist/esm/Modal/ModalAnimation.native.js.map +1 -6
  67. package/dist/esm/Modal/ModalContent.native.js +52 -54
  68. package/dist/esm/Modal/ModalContent.native.js.map +1 -6
  69. package/dist/esm/Modal/ModalFocusTrap.native.js +49 -52
  70. package/dist/esm/Modal/ModalFocusTrap.native.js.map +1 -6
  71. package/dist/esm/Modal/ModalPortal.native.js +9 -11
  72. package/dist/esm/Modal/ModalPortal.native.js.map +1 -6
  73. package/dist/esm/Modal/index.native.js +53 -45
  74. package/dist/esm/Modal/index.native.js.map +1 -6
  75. package/dist/esm/NativeModules/index.native.js +5 -6
  76. package/dist/esm/NativeModules/index.native.js.map +1 -6
  77. package/dist/esm/PanResponder/Alternative.js +157 -122
  78. package/dist/esm/PanResponder/Alternative.js.map +1 -6
  79. package/dist/esm/PanResponder/index.native.js +3 -5
  80. package/dist/esm/PanResponder/index.native.js.map +1 -6
  81. package/dist/esm/PixelRatio/index.native.js +48 -59
  82. package/dist/esm/PixelRatio/index.native.js.map +1 -6
  83. package/dist/esm/Pressable/index.native.js +70 -67
  84. package/dist/esm/Pressable/index.native.js.map +1 -6
  85. package/dist/esm/RefreshControl/index.native.js +4 -6
  86. package/dist/esm/RefreshControl/index.native.js.map +1 -6
  87. package/dist/esm/SafeAreaView/index.native.js +24 -21
  88. package/dist/esm/SafeAreaView/index.native.js.map +1 -6
  89. package/dist/esm/ScrollView/ScrollViewBase.native.js +61 -50
  90. package/dist/esm/ScrollView/ScrollViewBase.native.js.map +1 -6
  91. package/dist/esm/ScrollView/index.native.js +183 -211
  92. package/dist/esm/ScrollView/index.native.js.map +1 -6
  93. package/dist/esm/Share/index.native.js +29 -36
  94. package/dist/esm/Share/index.native.js.map +1 -6
  95. package/dist/esm/StatusBar/index.native.js +3 -6
  96. package/dist/esm/StatusBar/index.native.js.map +1 -6
  97. package/dist/esm/Text/index.native.js +128 -100
  98. package/dist/esm/Text/index.native.js.map +1 -6
  99. package/dist/esm/Text/types.native.js +2 -1
  100. package/dist/esm/Text/types.native.js.map +1 -6
  101. package/dist/esm/TextInput/__tests__/index-test.native.js +445 -259
  102. package/dist/esm/TextInput/__tests__/index-test.native.js.map +1 -6
  103. package/dist/esm/TextInput/index.native.js +210 -147
  104. package/dist/esm/TextInput/index.native.js.map +1 -6
  105. package/dist/esm/TextInput/types.native.js +2 -1
  106. package/dist/esm/TextInput/types.native.js.map +1 -6
  107. package/dist/esm/TouchableOpacity.native.js +63 -67
  108. package/dist/esm/TouchableOpacity.native.js.map +1 -6
  109. package/dist/esm/TouchableWithoutFeedback.native.js +49 -45
  110. package/dist/esm/TouchableWithoutFeedback.native.js.map +1 -6
  111. package/dist/esm/UnimplementedView.native.js +22 -30
  112. package/dist/esm/UnimplementedView.native.js.map +1 -6
  113. package/dist/esm/Vibration/index.native.js +14 -14
  114. package/dist/esm/Vibration/index.native.js.map +1 -6
  115. package/dist/esm/View/index.native.js +84 -55
  116. package/dist/esm/View/index.native.js.map +1 -6
  117. package/dist/esm/View/types.native.js +2 -1
  118. package/dist/esm/View/types.native.js.map +1 -6
  119. package/dist/esm/createElement/__tests__/index-test.native.js +398 -195
  120. package/dist/esm/createElement/__tests__/index-test.native.js.map +1 -6
  121. package/dist/esm/createElement/index.native.js +18 -16
  122. package/dist/esm/createElement/index.native.js.map +1 -6
  123. package/dist/esm/createReactDOMStyle.native.js +2 -4
  124. package/dist/esm/createReactDOMStyle.native.js.map +1 -6
  125. package/dist/esm/index.native.js +47 -123
  126. package/dist/esm/index.native.js.map +1 -6
  127. package/dist/esm/render/index.native.js +6 -15
  128. package/dist/esm/render/index.native.js.map +1 -6
  129. package/dist/esm/styleTypes.native.js +2 -1
  130. package/dist/esm/styleTypes.native.js.map +1 -6
  131. package/dist/esm/types.native.js +2 -1
  132. package/dist/esm/types.native.js.map +1 -6
  133. package/dist/esm/useColorScheme/index.native.js +7 -7
  134. package/dist/esm/useColorScheme/index.native.js.map +1 -6
  135. package/dist/esm/useLocaleContext/index.native.js +2 -4
  136. package/dist/esm/useLocaleContext/index.native.js.map +1 -6
  137. package/dist/esm/useWindowDimensions/index.native.js +9 -9
  138. package/dist/esm/useWindowDimensions/index.native.js.map +1 -6
  139. package/dist/esm/vendor/react-native/Animated/Animated.native.js +16 -17
  140. package/dist/esm/vendor/react-native/Animated/Animated.native.js.map +1 -6
  141. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js +72 -99
  142. package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js.map +1 -6
  143. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js +465 -436
  144. package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js.map +1 -6
  145. package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js +97 -91
  146. package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js.map +1 -6
  147. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js +2 -1
  148. package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js.map +1 -6
  149. package/dist/esm/vendor/react-native/Animated/Easing.native.js +194 -231
  150. package/dist/esm/vendor/react-native/Animated/Easing.native.js.map +1 -6
  151. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js +206 -222
  152. package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +1 -6
  153. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js +3 -5
  154. package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +1 -6
  155. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +3 -5
  156. package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +1 -6
  157. package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js +5 -5
  158. package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js.map +1 -6
  159. package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js +25 -37
  160. package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js.map +1 -6
  161. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js +42 -54
  162. package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +1 -6
  163. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js +72 -72
  164. package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js.map +1 -6
  165. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js +45 -60
  166. package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +1 -6
  167. package/dist/esm/vendor/react-native/Animated/bezier.native.js +23 -20
  168. package/dist/esm/vendor/react-native/Animated/bezier.native.js.map +1 -6
  169. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js +4 -6
  170. package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js.map +1 -6
  171. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js +12 -13
  172. package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +1 -6
  173. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js +4 -6
  174. package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js.map +1 -6
  175. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js +4 -6
  176. package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js.map +1 -6
  177. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js +17 -11
  178. package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js.map +1 -6
  179. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +39 -55
  180. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +1 -6
  181. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js +180 -197
  182. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +1 -6
  183. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +39 -51
  184. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +1 -6
  185. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +42 -57
  186. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +1 -6
  187. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +99 -116
  188. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +1 -6
  189. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +37 -50
  190. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +1 -6
  191. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +39 -55
  192. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +1 -6
  193. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js +61 -89
  194. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +1 -6
  195. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js +52 -70
  196. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +1 -6
  197. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +50 -68
  198. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +1 -6
  199. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +39 -55
  200. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +1 -6
  201. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +41 -53
  202. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +1 -6
  203. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +44 -57
  204. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +1 -6
  205. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js +70 -99
  206. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +1 -6
  207. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +64 -82
  208. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +1 -6
  209. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +40 -53
  210. package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +1 -6
  211. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js +50 -58
  212. package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js.map +1 -6
  213. package/dist/esm/vendor/react-native/FeatureFlags.native.js +8 -10
  214. package/dist/esm/vendor/react-native/FeatureFlags.native.js.map +1 -6
  215. package/dist/esm/vendor/react-native/FillRateHelper/index.native.js +58 -59
  216. package/dist/esm/vendor/react-native/FillRateHelper/index.native.js.map +1 -6
  217. package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js +3 -5
  218. package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +1 -6
  219. package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js +46 -55
  220. package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js.map +1 -6
  221. package/dist/esm/vendor/react-native/PanResponder/index.native.js +224 -219
  222. package/dist/esm/vendor/react-native/PanResponder/index.native.js.map +1 -6
  223. package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js +58 -81
  224. package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js.map +1 -6
  225. package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js +2 -1
  226. package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js.map +1 -6
  227. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +2 -5
  228. package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +1 -6
  229. package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js +2 -1
  230. package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js.map +1 -6
  231. package/dist/esm/vendor/react-native/Utilities/clamp.native.js +2 -4
  232. package/dist/esm/vendor/react-native/Utilities/clamp.native.js.map +1 -6
  233. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js +5 -6
  234. package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js.map +1 -6
  235. package/dist/esm/vendor/react-native/ViewabilityHelper.native.js +127 -129
  236. package/dist/esm/vendor/react-native/ViewabilityHelper.native.js.map +1 -6
  237. package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js +51 -50
  238. package/dist/esm/vendor/react-native/VirtualizeUtils/index.native.js.map +1 -6
  239. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js +60 -73
  240. package/dist/esm/vendor/react-native/VirtualizedList/CellRenderMask.native.js.map +1 -6
  241. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js +96 -96
  242. package/dist/esm/vendor/react-native/VirtualizedList/ChildListCollection.native.js.map +1 -6
  243. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js +57 -64
  244. package/dist/esm/vendor/react-native/VirtualizedList/StateSafePureComponent.native.js.map +1 -6
  245. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js +105 -117
  246. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListCellRenderer.native.js.map +1 -6
  247. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js +35 -37
  248. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListContext.native.js.map +1 -6
  249. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js +2 -1
  250. package/dist/esm/vendor/react-native/VirtualizedList/VirtualizedListProps.native.js.map +1 -6
  251. package/dist/esm/vendor/react-native/VirtualizedList/index.native.js +817 -760
  252. package/dist/esm/vendor/react-native/VirtualizedList/index.native.js.map +1 -6
  253. package/dist/esm/vendor/react-native/deepDiffer/index.native.js +17 -29
  254. package/dist/esm/vendor/react-native/deepDiffer/index.native.js.map +1 -6
  255. package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js +3 -5
  256. package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js.map +1 -6
  257. package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js +2 -1
  258. package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js.map +1 -6
  259. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js +24 -33
  260. package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js.map +1 -6
  261. package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js +41 -51
  262. package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js.map +1 -6
  263. package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js +12 -16
  264. package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js.map +1 -6
  265. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js +21 -26
  266. package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js.map +1 -6
  267. package/dist/esm/vendor/react-native/infoLog/index.native.js +3 -6
  268. package/dist/esm/vendor/react-native/infoLog/index.native.js.map +1 -6
  269. package/dist/esm/vendor/react-native/useRefEffect.native.js +4 -8
  270. package/dist/esm/vendor/react-native/useRefEffect.native.js.map +1 -6
  271. package/dist/esm/without-animated.native.js +51 -112
  272. package/dist/esm/without-animated.native.js.map +1 -6
  273. package/package.json +6 -6
  274. package/src/vendor/react-native/Animated/NativeAnimatedHelper.js +1 -1
@@ -1,219 +1,226 @@
1
1
  import { InteractionManager } from "@tamagui/react-native-web-internals";
2
2
  import TouchHistoryMath from "../TouchHistoryMath";
3
- var currentCentroidXOfTouchesChangedAfter = TouchHistoryMath.currentCentroidXOfTouchesChangedAfter, currentCentroidYOfTouchesChangedAfter = TouchHistoryMath.currentCentroidYOfTouchesChangedAfter, previousCentroidXOfTouchesChangedAfter = TouchHistoryMath.previousCentroidXOfTouchesChangedAfter, previousCentroidYOfTouchesChangedAfter = TouchHistoryMath.previousCentroidYOfTouchesChangedAfter, currentCentroidX = TouchHistoryMath.currentCentroidX, currentCentroidY = TouchHistoryMath.currentCentroidY, PanResponder = {
4
- /**
5
- *
6
- * A graphical explanation of the touch data flow:
7
- *
8
- * +----------------------------+ +--------------------------------+
9
- * | ResponderTouchHistoryStore | |TouchHistoryMath |
10
- * +----------------------------+ +----------+---------------------+
11
- * |Global store of touchHistory| |Allocation-less math util |
12
- * |including activeness, start | |on touch history (centroids |
13
- * |position, prev/cur position.| |and multitouch movement etc) |
14
- * | | | |
15
- * +----^-----------------------+ +----^---------------------------+
16
- * | |
17
- * | (records relevant history |
18
- * | of touches relevant for |
19
- * | implementing higher level |
20
- * | gestures) |
21
- * | |
22
- * +----+-----------------------+ +----|---------------------------+
23
- * | ResponderEventPlugin | | | Your App/Component |
24
- * +----------------------------+ +----|---------------------------+
25
- * |Negotiates which view gets | Low level | | High level |
26
- * |onResponderMove events. | events w/ | +-+-------+ events w/ |
27
- * |Also records history into | touchHistory| | Pan | multitouch + |
28
- * |ResponderTouchHistoryStore. +---------------->Responder+-----> accumulative|
29
- * +----------------------------+ attached to | | | distance and |
30
- * each event | +---------+ velocity. |
31
- * | |
32
- * | |
33
- * +--------------------------------+
34
- *
35
- *
36
- *
37
- * Gesture that calculates cumulative movement over time in a way that just
38
- * "does the right thing" for multiple touches. The "right thing" is very
39
- * nuanced. When moving two touches in opposite directions, the cumulative
40
- * distance is zero in each dimension. When two touches move in parallel five
41
- * pixels in the same direction, the cumulative distance is five, not ten. If
42
- * two touches start, one moves five in a direction, then stops and the other
43
- * touch moves fives in the same direction, the cumulative distance is ten.
44
- *
45
- * This logic requires a kind of processing of time "clusters" of touch events
46
- * so that two touch moves that essentially occur in parallel but move every
47
- * other frame respectively, are considered part of the same movement.
48
- *
49
- * Explanation of some of the non-obvious fields:
50
- *
51
- * - moveX/moveY: If no move event has been observed, then `(moveX, moveY)` is
52
- * invalid. If a move event has been observed, `(moveX, moveY)` is the
53
- * centroid of the most recently moved "cluster" of active touches.
54
- * (Currently all move have the same timeStamp, but later we should add some
55
- * threshold for what is considered to be "moving"). If a palm is
56
- * accidentally counted as a touch, but a finger is moving greatly, the palm
57
- * will move slightly, but we only want to count the single moving touch.
58
- * - x0/y0: Centroid location (non-cumulative) at the time of becoming
59
- * responder.
60
- * - dx/dy: Cumulative touch distance - not the same thing as sum of each touch
61
- * distance. Accounts for touch moves that are clustered together in time,
62
- * moving the same direction. Only valid when currently responder (otherwise,
63
- * it only represents the drag distance below the threshold).
64
- * - vx/vy: Velocity.
65
- */
66
- _initializeGestureState(gestureState) {
67
- gestureState.moveX = 0, gestureState.moveY = 0, gestureState.x0 = 0, gestureState.y0 = 0, gestureState.dx = 0, gestureState.dy = 0, gestureState.vx = 0, gestureState.vy = 0, gestureState.numberActiveTouches = 0, gestureState._accountsForMovesUpTo = 0;
68
- },
69
- /**
70
- * This is nuanced and is necessary. It is incorrect to continuously take all
71
- * active *and* recently moved touches, find the centroid, and track how that
72
- * result changes over time. Instead, we must take all recently moved
73
- * touches, and calculate how the centroid has changed just for those
74
- * recently moved touches, and append that change to an accumulator. This is
75
- * to (at least) handle the case where the user is moving three fingers, and
76
- * then one of the fingers stops but the other two continue.
77
- *
78
- * This is very different than taking all of the recently moved touches and
79
- * storing their centroid as `dx/dy`. For correctness, we must *accumulate
80
- * changes* in the centroid of recently moved touches.
81
- *
82
- * There is also some nuance with how we handle multiple moved touches in a
83
- * single event. With the way `ReactNativeEventEmitter` dispatches touches as
84
- * individual events, multiple touches generate two 'move' events, each of
85
- * them triggering `onResponderMove`. But with the way `PanResponder` works,
86
- * all of the gesture inference is performed on the first dispatch, since it
87
- * looks at all of the touches (even the ones for which there hasn't been a
88
- * native dispatch yet). Therefore, `PanResponder` does not call
89
- * `onResponderMove` passed the first dispatch. This diverges from the
90
- * typical responder callback pattern (without using `PanResponder`), but
91
- * avoids more dispatches than necessary.
92
- */
93
- _updateGestureStateOnMove(gestureState, touchHistory) {
94
- gestureState.numberActiveTouches = touchHistory.numberActiveTouches, gestureState.moveX = currentCentroidXOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo), gestureState.moveY = currentCentroidYOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo);
95
- var movedAfter = gestureState._accountsForMovesUpTo, prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter), x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter), prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter), y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter), nextDX = gestureState.dx + (x - prevX), nextDY = gestureState.dy + (y - prevY), dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;
96
- gestureState.vx = (nextDX - gestureState.dx) / dt, gestureState.vy = (nextDY - gestureState.dy) / dt, gestureState.dx = nextDX, gestureState.dy = nextDY, gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;
97
- },
98
- /**
99
- * @param {object} config Enhanced versions of all of the responder callbacks
100
- * that provide not only the typical `ResponderSyntheticEvent`, but also the
101
- * `PanResponder` gesture state. Simply replace the word `Responder` with
102
- * `PanResponder` in each of the typical `onResponder*` callbacks. For
103
- * example, the `config` object would look like:
104
- *
105
- * - `onMoveShouldSetPanResponder: (e, gestureState) => {...}`
106
- * - `onMoveShouldSetPanResponderCapture: (e, gestureState) => {...}`
107
- * - `onStartShouldSetPanResponder: (e, gestureState) => {...}`
108
- * - `onStartShouldSetPanResponderCapture: (e, gestureState) => {...}`
109
- * - `onPanResponderReject: (e, gestureState) => {...}`
110
- * - `onPanResponderGrant: (e, gestureState) => {...}`
111
- * - `onPanResponderStart: (e, gestureState) => {...}`
112
- * - `onPanResponderEnd: (e, gestureState) => {...}`
113
- * - `onPanResponderRelease: (e, gestureState) => {...}`
114
- * - `onPanResponderMove: (e, gestureState) => {...}`
115
- * - `onPanResponderTerminate: (e, gestureState) => {...}`
116
- * - `onPanResponderTerminationRequest: (e, gestureState) => {...}`
117
- * - `onShouldBlockNativeResponder: (e, gestureState) => {...}`
118
- *
119
- * In general, for events that have capture equivalents, we update the
120
- * gestureState once in the capture phase and can use it in the bubble phase
121
- * as well.
122
- *
123
- * Be careful with onStartShould* callbacks. They only reflect updated
124
- * `gestureState` for start/end events that bubble/capture to the Node.
125
- * Once the node is the responder, you can rely on every start/end event
126
- * being processed by the gesture and `gestureState` being updated
127
- * accordingly. (numberActiveTouches) may not be totally accurate unless you
128
- * are the responder.
129
- */
130
- create(config) {
131
- var interactionState = {
132
- handle: null,
133
- shouldCancelClick: !1,
134
- timeout: null
135
- }, gestureState = {
136
- // Useful for debugging
137
- stateID: Math.random(),
138
- moveX: 0,
139
- moveY: 0,
140
- x0: 0,
141
- y0: 0,
142
- dx: 0,
143
- dy: 0,
144
- vx: 0,
145
- vy: 0,
146
- numberActiveTouches: 0,
147
- _accountsForMovesUpTo: 0
148
- }, panHandlers = {
149
- onStartShouldSetResponder(event) {
150
- return config.onStartShouldSetPanResponder == null ? !1 : config.onStartShouldSetPanResponder(event, gestureState);
151
- },
152
- onMoveShouldSetResponder(event) {
153
- return config.onMoveShouldSetPanResponder == null ? !1 : config.onMoveShouldSetPanResponder(event, gestureState);
154
- },
155
- onStartShouldSetResponderCapture(event) {
156
- return event.nativeEvent.touches.length === 1 && PanResponder._initializeGestureState(gestureState), gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches, config.onStartShouldSetPanResponderCapture != null ? config.onStartShouldSetPanResponderCapture(event, gestureState) : !1;
157
- },
158
- onMoveShouldSetResponderCapture(event) {
159
- var touchHistory = event.touchHistory;
160
- return gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp ? !1 : (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), config.onMoveShouldSetPanResponderCapture ? config.onMoveShouldSetPanResponderCapture(event, gestureState) : !1);
161
- },
162
- onResponderGrant(event) {
163
- return interactionState.handle || (interactionState.handle = InteractionManager.createInteractionHandle()), interactionState.timeout && clearInteractionTimeout(interactionState), interactionState.shouldCancelClick = !0, gestureState.x0 = currentCentroidX(event.touchHistory), gestureState.y0 = currentCentroidY(event.touchHistory), gestureState.dx = 0, gestureState.dy = 0, config.onPanResponderGrant && config.onPanResponderGrant(event, gestureState), config.onShouldBlockNativeResponder == null ? !0 : config.onShouldBlockNativeResponder(event, gestureState);
164
- },
165
- onResponderReject(event) {
166
- clearInteractionHandle(
167
- interactionState,
168
- // @ts-ignore
169
- config.onPanResponderReject,
170
- event,
171
- gestureState
172
- );
173
- },
174
- onResponderRelease(event) {
175
- clearInteractionHandle(interactionState, config.onPanResponderRelease, event, gestureState), setInteractionTimeout(interactionState), PanResponder._initializeGestureState(gestureState);
176
- },
177
- onResponderStart(event) {
178
- var touchHistory = event.touchHistory;
179
- gestureState.numberActiveTouches = touchHistory.numberActiveTouches, config.onPanResponderStart && config.onPanResponderStart(event, gestureState);
180
- },
181
- onResponderMove(event) {
182
- var touchHistory = event.touchHistory;
183
- gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), config.onPanResponderMove && config.onPanResponderMove(event, gestureState));
184
- },
185
- onResponderEnd(event) {
186
- var touchHistory = event.touchHistory;
187
- gestureState.numberActiveTouches = touchHistory.numberActiveTouches, clearInteractionHandle(interactionState, config.onPanResponderEnd, event, gestureState);
188
- },
189
- onResponderTerminate(event) {
190
- clearInteractionHandle(
191
- interactionState,
192
- // @ts-ignore
193
- config.onPanResponderTerminate,
194
- event,
195
- gestureState
196
- ), setInteractionTimeout(interactionState), PanResponder._initializeGestureState(gestureState);
197
- },
198
- onResponderTerminationRequest(event) {
199
- return config.onPanResponderTerminationRequest == null ? !0 : config.onPanResponderTerminationRequest(event, gestureState);
200
- },
201
- // We do not want to trigger 'click' activated gestures or native behaviors
202
- // on any pan target that is under a mouse cursor when it is released.
203
- // Browsers will natively cancel 'click' events on a target if a non-mouse
204
- // active pointer moves.
205
- onClickCapture: function(event) {
206
- interactionState.shouldCancelClick === !0 && (event.stopPropagation(), event.preventDefault());
207
- }
208
- };
209
- return {
210
- panHandlers,
211
- getInteractionHandle() {
212
- return interactionState.handle;
213
- }
214
- };
215
- }
216
- };
3
+ var currentCentroidXOfTouchesChangedAfter = TouchHistoryMath.currentCentroidXOfTouchesChangedAfter,
4
+ currentCentroidYOfTouchesChangedAfter = TouchHistoryMath.currentCentroidYOfTouchesChangedAfter,
5
+ previousCentroidXOfTouchesChangedAfter = TouchHistoryMath.previousCentroidXOfTouchesChangedAfter,
6
+ previousCentroidYOfTouchesChangedAfter = TouchHistoryMath.previousCentroidYOfTouchesChangedAfter,
7
+ currentCentroidX = TouchHistoryMath.currentCentroidX,
8
+ currentCentroidY = TouchHistoryMath.currentCentroidY,
9
+ PanResponder = {
10
+ /**
11
+ *
12
+ * A graphical explanation of the touch data flow:
13
+ *
14
+ * +----------------------------+ +--------------------------------+
15
+ * | ResponderTouchHistoryStore | |TouchHistoryMath |
16
+ * +----------------------------+ +----------+---------------------+
17
+ * |Global store of touchHistory| |Allocation-less math util |
18
+ * |including activeness, start | |on touch history (centroids |
19
+ * |position, prev/cur position.| |and multitouch movement etc) |
20
+ * | | | |
21
+ * +----^-----------------------+ +----^---------------------------+
22
+ * | |
23
+ * | (records relevant history |
24
+ * | of touches relevant for |
25
+ * | implementing higher level |
26
+ * | gestures) |
27
+ * | |
28
+ * +----+-----------------------+ +----|---------------------------+
29
+ * | ResponderEventPlugin | | | Your App/Component |
30
+ * +----------------------------+ +----|---------------------------+
31
+ * |Negotiates which view gets | Low level | | High level |
32
+ * |onResponderMove events. | events w/ | +-+-------+ events w/ |
33
+ * |Also records history into | touchHistory| | Pan | multitouch + |
34
+ * |ResponderTouchHistoryStore. +---------------->Responder+-----> accumulative|
35
+ * +----------------------------+ attached to | | | distance and |
36
+ * each event | +---------+ velocity. |
37
+ * | |
38
+ * | |
39
+ * +--------------------------------+
40
+ *
41
+ *
42
+ *
43
+ * Gesture that calculates cumulative movement over time in a way that just
44
+ * "does the right thing" for multiple touches. The "right thing" is very
45
+ * nuanced. When moving two touches in opposite directions, the cumulative
46
+ * distance is zero in each dimension. When two touches move in parallel five
47
+ * pixels in the same direction, the cumulative distance is five, not ten. If
48
+ * two touches start, one moves five in a direction, then stops and the other
49
+ * touch moves fives in the same direction, the cumulative distance is ten.
50
+ *
51
+ * This logic requires a kind of processing of time "clusters" of touch events
52
+ * so that two touch moves that essentially occur in parallel but move every
53
+ * other frame respectively, are considered part of the same movement.
54
+ *
55
+ * Explanation of some of the non-obvious fields:
56
+ *
57
+ * - moveX/moveY: If no move event has been observed, then `(moveX, moveY)` is
58
+ * invalid. If a move event has been observed, `(moveX, moveY)` is the
59
+ * centroid of the most recently moved "cluster" of active touches.
60
+ * (Currently all move have the same timeStamp, but later we should add some
61
+ * threshold for what is considered to be "moving"). If a palm is
62
+ * accidentally counted as a touch, but a finger is moving greatly, the palm
63
+ * will move slightly, but we only want to count the single moving touch.
64
+ * - x0/y0: Centroid location (non-cumulative) at the time of becoming
65
+ * responder.
66
+ * - dx/dy: Cumulative touch distance - not the same thing as sum of each touch
67
+ * distance. Accounts for touch moves that are clustered together in time,
68
+ * moving the same direction. Only valid when currently responder (otherwise,
69
+ * it only represents the drag distance below the threshold).
70
+ * - vx/vy: Velocity.
71
+ */
72
+ _initializeGestureState(gestureState) {
73
+ gestureState.moveX = 0, gestureState.moveY = 0, gestureState.x0 = 0, gestureState.y0 = 0, gestureState.dx = 0, gestureState.dy = 0, gestureState.vx = 0, gestureState.vy = 0, gestureState.numberActiveTouches = 0, gestureState._accountsForMovesUpTo = 0;
74
+ },
75
+ /**
76
+ * This is nuanced and is necessary. It is incorrect to continuously take all
77
+ * active *and* recently moved touches, find the centroid, and track how that
78
+ * result changes over time. Instead, we must take all recently moved
79
+ * touches, and calculate how the centroid has changed just for those
80
+ * recently moved touches, and append that change to an accumulator. This is
81
+ * to (at least) handle the case where the user is moving three fingers, and
82
+ * then one of the fingers stops but the other two continue.
83
+ *
84
+ * This is very different than taking all of the recently moved touches and
85
+ * storing their centroid as `dx/dy`. For correctness, we must *accumulate
86
+ * changes* in the centroid of recently moved touches.
87
+ *
88
+ * There is also some nuance with how we handle multiple moved touches in a
89
+ * single event. With the way `ReactNativeEventEmitter` dispatches touches as
90
+ * individual events, multiple touches generate two 'move' events, each of
91
+ * them triggering `onResponderMove`. But with the way `PanResponder` works,
92
+ * all of the gesture inference is performed on the first dispatch, since it
93
+ * looks at all of the touches (even the ones for which there hasn't been a
94
+ * native dispatch yet). Therefore, `PanResponder` does not call
95
+ * `onResponderMove` passed the first dispatch. This diverges from the
96
+ * typical responder callback pattern (without using `PanResponder`), but
97
+ * avoids more dispatches than necessary.
98
+ */
99
+ _updateGestureStateOnMove(gestureState, touchHistory) {
100
+ gestureState.numberActiveTouches = touchHistory.numberActiveTouches, gestureState.moveX = currentCentroidXOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo), gestureState.moveY = currentCentroidYOfTouchesChangedAfter(touchHistory, gestureState._accountsForMovesUpTo);
101
+ var movedAfter = gestureState._accountsForMovesUpTo,
102
+ prevX = previousCentroidXOfTouchesChangedAfter(touchHistory, movedAfter),
103
+ x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter),
104
+ prevY = previousCentroidYOfTouchesChangedAfter(touchHistory, movedAfter),
105
+ y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter),
106
+ nextDX = gestureState.dx + (x - prevX),
107
+ nextDY = gestureState.dy + (y - prevY),
108
+ dt = touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;
109
+ gestureState.vx = (nextDX - gestureState.dx) / dt, gestureState.vy = (nextDY - gestureState.dy) / dt, gestureState.dx = nextDX, gestureState.dy = nextDY, gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;
110
+ },
111
+ /**
112
+ * @param {object} config Enhanced versions of all of the responder callbacks
113
+ * that provide not only the typical `ResponderSyntheticEvent`, but also the
114
+ * `PanResponder` gesture state. Simply replace the word `Responder` with
115
+ * `PanResponder` in each of the typical `onResponder*` callbacks. For
116
+ * example, the `config` object would look like:
117
+ *
118
+ * - `onMoveShouldSetPanResponder: (e, gestureState) => {...}`
119
+ * - `onMoveShouldSetPanResponderCapture: (e, gestureState) => {...}`
120
+ * - `onStartShouldSetPanResponder: (e, gestureState) => {...}`
121
+ * - `onStartShouldSetPanResponderCapture: (e, gestureState) => {...}`
122
+ * - `onPanResponderReject: (e, gestureState) => {...}`
123
+ * - `onPanResponderGrant: (e, gestureState) => {...}`
124
+ * - `onPanResponderStart: (e, gestureState) => {...}`
125
+ * - `onPanResponderEnd: (e, gestureState) => {...}`
126
+ * - `onPanResponderRelease: (e, gestureState) => {...}`
127
+ * - `onPanResponderMove: (e, gestureState) => {...}`
128
+ * - `onPanResponderTerminate: (e, gestureState) => {...}`
129
+ * - `onPanResponderTerminationRequest: (e, gestureState) => {...}`
130
+ * - `onShouldBlockNativeResponder: (e, gestureState) => {...}`
131
+ *
132
+ * In general, for events that have capture equivalents, we update the
133
+ * gestureState once in the capture phase and can use it in the bubble phase
134
+ * as well.
135
+ *
136
+ * Be careful with onStartShould* callbacks. They only reflect updated
137
+ * `gestureState` for start/end events that bubble/capture to the Node.
138
+ * Once the node is the responder, you can rely on every start/end event
139
+ * being processed by the gesture and `gestureState` being updated
140
+ * accordingly. (numberActiveTouches) may not be totally accurate unless you
141
+ * are the responder.
142
+ */
143
+ create(config) {
144
+ var interactionState = {
145
+ handle: null,
146
+ shouldCancelClick: !1,
147
+ timeout: null
148
+ },
149
+ gestureState = {
150
+ // Useful for debugging
151
+ stateID: Math.random(),
152
+ moveX: 0,
153
+ moveY: 0,
154
+ x0: 0,
155
+ y0: 0,
156
+ dx: 0,
157
+ dy: 0,
158
+ vx: 0,
159
+ vy: 0,
160
+ numberActiveTouches: 0,
161
+ _accountsForMovesUpTo: 0
162
+ },
163
+ panHandlers = {
164
+ onStartShouldSetResponder(event) {
165
+ return config.onStartShouldSetPanResponder == null ? !1 : config.onStartShouldSetPanResponder(event, gestureState);
166
+ },
167
+ onMoveShouldSetResponder(event) {
168
+ return config.onMoveShouldSetPanResponder == null ? !1 : config.onMoveShouldSetPanResponder(event, gestureState);
169
+ },
170
+ onStartShouldSetResponderCapture(event) {
171
+ return event.nativeEvent.touches.length === 1 && PanResponder._initializeGestureState(gestureState), gestureState.numberActiveTouches = event.touchHistory.numberActiveTouches, config.onStartShouldSetPanResponderCapture != null ? config.onStartShouldSetPanResponderCapture(event, gestureState) : !1;
172
+ },
173
+ onMoveShouldSetResponderCapture(event) {
174
+ var touchHistory = event.touchHistory;
175
+ return gestureState._accountsForMovesUpTo === touchHistory.mostRecentTimeStamp ? !1 : (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), config.onMoveShouldSetPanResponderCapture ? config.onMoveShouldSetPanResponderCapture(event, gestureState) : !1);
176
+ },
177
+ onResponderGrant(event) {
178
+ return interactionState.handle || (interactionState.handle = InteractionManager.createInteractionHandle()), interactionState.timeout && clearInteractionTimeout(interactionState), interactionState.shouldCancelClick = !0, gestureState.x0 = currentCentroidX(event.touchHistory), gestureState.y0 = currentCentroidY(event.touchHistory), gestureState.dx = 0, gestureState.dy = 0, config.onPanResponderGrant && config.onPanResponderGrant(event, gestureState), config.onShouldBlockNativeResponder == null ? !0 : config.onShouldBlockNativeResponder(event, gestureState);
179
+ },
180
+ onResponderReject(event) {
181
+ clearInteractionHandle(interactionState,
182
+ // @ts-ignore
183
+ config.onPanResponderReject, event, gestureState);
184
+ },
185
+ onResponderRelease(event) {
186
+ clearInteractionHandle(interactionState, config.onPanResponderRelease, event, gestureState), setInteractionTimeout(interactionState), PanResponder._initializeGestureState(gestureState);
187
+ },
188
+ onResponderStart(event) {
189
+ var touchHistory = event.touchHistory;
190
+ gestureState.numberActiveTouches = touchHistory.numberActiveTouches, config.onPanResponderStart && config.onPanResponderStart(event, gestureState);
191
+ },
192
+ onResponderMove(event) {
193
+ var touchHistory = event.touchHistory;
194
+ gestureState._accountsForMovesUpTo !== touchHistory.mostRecentTimeStamp && (PanResponder._updateGestureStateOnMove(gestureState, touchHistory), config.onPanResponderMove && config.onPanResponderMove(event, gestureState));
195
+ },
196
+ onResponderEnd(event) {
197
+ var touchHistory = event.touchHistory;
198
+ gestureState.numberActiveTouches = touchHistory.numberActiveTouches, clearInteractionHandle(interactionState, config.onPanResponderEnd, event, gestureState);
199
+ },
200
+ onResponderTerminate(event) {
201
+ clearInteractionHandle(interactionState,
202
+ // @ts-ignore
203
+ config.onPanResponderTerminate, event, gestureState), setInteractionTimeout(interactionState), PanResponder._initializeGestureState(gestureState);
204
+ },
205
+ onResponderTerminationRequest(event) {
206
+ return config.onPanResponderTerminationRequest == null ? !0 : config.onPanResponderTerminationRequest(event, gestureState);
207
+ },
208
+ // We do not want to trigger 'click' activated gestures or native behaviors
209
+ // on any pan target that is under a mouse cursor when it is released.
210
+ // Browsers will natively cancel 'click' events on a target if a non-mouse
211
+ // active pointer moves.
212
+ onClickCapture: function (event) {
213
+ interactionState.shouldCancelClick === !0 && (event.stopPropagation(), event.preventDefault());
214
+ }
215
+ };
216
+ return {
217
+ panHandlers,
218
+ getInteractionHandle() {
219
+ return interactionState.handle;
220
+ }
221
+ };
222
+ }
223
+ };
217
224
  function clearInteractionHandle(interactionState, callback, event, gestureState) {
218
225
  interactionState.handle && (InteractionManager.clearInteractionHandle(interactionState.handle), interactionState.handle = null), callback && callback(event, gestureState);
219
226
  }
@@ -221,12 +228,10 @@ function clearInteractionTimeout(interactionState) {
221
228
  clearTimeout(interactionState.timeout);
222
229
  }
223
230
  function setInteractionTimeout(interactionState) {
224
- interactionState.timeout = setTimeout(function() {
231
+ interactionState.timeout = setTimeout(function () {
225
232
  interactionState.shouldCancelClick = !1;
226
233
  }, 250);
227
234
  }
228
235
  var PanResponder_default = PanResponder;
229
- export {
230
- PanResponder_default as default
231
- };
232
- //# sourceMappingURL=index.js.map
236
+ export { PanResponder_default as default };
237
+ //# sourceMappingURL=index.native.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../src/vendor/react-native/PanResponder/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/PanResponder/index.tsx"],
4
- "mappings": "AASA,SAASA,0BAA0B;AAEnC,OAAOC,sBAAsB;AAI7B,IAAMC,wCACJD,iBAAiBC,uCACbC,wCACJF,iBAAiBE,uCACbC,yCACJH,iBAAiBG,wCACbC,yCACJJ,iBAAiBI,wCACbC,mBAAmBL,iBAAiBK,kBACpCC,mBAAmBN,iBAAiBM,kBA8LpCC,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgEnBC,wBAAwBC,cAA0B;AAChDA,iBAAaC,QAAQ,GACrBD,aAAaE,QAAQ,GACrBF,aAAaG,KAAK,GAClBH,aAAaI,KAAK,GAClBJ,aAAaK,KAAK,GAClBL,aAAaM,KAAK,GAClBN,aAAaO,KAAK,GAClBP,aAAaQ,KAAK,GAClBR,aAAaS,sBAAsB,GAEnCT,aAAaU,wBAAwB;EACvC;;;;;;;;;;;;;;;;;;;;;;;;;EA0BAC,0BAA0BX,cAA4BY,cAAiB;AACrEZ,iBAAaS,sBAAsBG,aAAaH,qBAChDT,aAAaC,QAAQT,sCACnBoB,cACAZ,aAAaU,qBAAqB,GAEpCV,aAAaE,QAAQT,sCACnBmB,cACAZ,aAAaU,qBAAqB;AAEpC,QAAMG,aAAab,aAAaU,uBAC1BI,QAAQpB,uCAAuCkB,cAAcC,UAAAA,GAC7DE,IAAIvB,sCAAsCoB,cAAcC,UAAAA,GACxDG,QAAQrB,uCAAuCiB,cAAcC,UAAAA,GAC7DI,IAAIxB,sCAAsCmB,cAAcC,UAAAA,GACxDK,SAASlB,aAAaK,MAAMU,IAAID,QAChCK,SAASnB,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AOuC;UACP7B;UACAjC;QAAAA,GAEFsD,sBAAsB9B,gBAAAA,GACtB1B,aAAaC,wBAAwBC,YAAAA;MACvC;MAEA+D,8BAA8B9B,OAAiB;AAC7C,eAAOV,OAAOyC,oCAAoC,OAC9C,KACAzC,OAAOyC,iCAAiC/B,OAAOjC,YAAAA;MACrD;;;;;MAMAiE,gBAAgB,SAAChC,OAAAA;AACf,QAAIT,iBAAiBE,sBAAsB,OACzCO,MAAMiC,gBAAe,GACrBjC,MAAMkC,eAAc;MAExB;IACF;AAEA,WAAO;MACLpC;MACAqC,uBAAAA;AACE,eAAO5C,iBAAiBC;MAC1B;IACF;EACF;AACF;AAEA,SAASyB,uBACP1B,kBACA6C,UACApC,OACAjC,cAA0B;AAE1B,EAAIwB,iBAAiBC,WACnBnC,mBAAmB4D,uBAAuB1B,iBAAiBC,MAAM,GACjED,iBAAiBC,SAAS,OAExB4C,YACFA,SAASpC,OAAOjC,YAAAA;AAEpB;AAEA,SAAS8C,wBAAwBtB,kBAAkC;AACjE8C,eAAa9C,iBAAiBG,OAAO;AACvC;AAEA,SAAS2B,sBAAsB9B,kBAAkC;AAC/DA,mBAAiBG,UAAU4C,WAAW,WAAA;AACpC/C,qBAAiBE,oBAAoB;EACvC,GAAG,GAAA;AACL;AAEA,IAAA,uBAAe5B;",
5
- "names": ["InteractionManager", "TouchHistoryMath", "currentCentroidXOfTouchesChangedAfter", "currentCentroidYOfTouchesChangedAfter", "previousCentroidXOfTouchesChangedAfter", "previousCentroidYOfTouchesChangedAfter", "currentCentroidX", "currentCentroidY", "PanResponder", "_initializeGestureState", "gestureState", "moveX", "moveY", "x0", "y0", "dx", "dy", "vx", "vy", "numberActiveTouches", "_accountsForMovesUpTo", "_updateGestureStateOnMove", "touchHistory", "movedAfter", "prevX", "x", "prevY", "y", "nextDX", "nextDY", "dt", "mostRecentTimeStamp", "create", "config", "interactionState", "handle", "shouldCancelClick", "timeout", "stateID", "Math", "random", "panHandlers", "onStartShouldSetResponder", "event", "onStartShouldSetPanResponder", "onMoveShouldSetResponder", "onMoveShouldSetPanResponder", "onStartShouldSetResponderCapture", "nativeEvent", "touches", "length", "onStartShouldSetPanResponderCapture", "onMoveShouldSetResponderCapture", "onMoveShouldSetPanResponderCapture", "onResponderGrant", "createInteractionHandle", "clearInteractionTimeout", "onPanResponderGrant", "onShouldBlockNativeResponder", "onResponderReject", "clearInteractionHandle", "onPanResponderReject", "onResponderRelease", "onPanResponderRelease", "setInteractionTimeout", "onResponderStart", "onPanResponderStart", "onResponderMove", "onPanResponderMove", "onResponderEnd", "onPanResponderEnd", "onResponderTerminate", "onPanResponderTerminate", "onResponderTerminationRequest", "onPanResponderTerminationRequest", "onClickCapture", "stopPropagation", "preventDefault", "getInteractionHandle", "callback", "clearTimeout", "setTimeout"]
6
- }
1
+ {"version":3,"names":["InteractionManager","TouchHistoryMath","currentCentroidXOfTouchesChangedAfter","currentCentroidYOfTouchesChangedAfter","previousCentroidXOfTouchesChangedAfter","previousCentroidYOfTouchesChangedAfter","currentCentroidX","currentCentroidY","PanResponder","_initializeGestureState","gestureState","moveX","moveY","x0","y0","dx","dy","vx","vy","numberActiveTouches","_accountsForMovesUpTo","_updateGestureStateOnMove","touchHistory","movedAfter","prevX","x","prevY","y","nextDX","nextDY","dt","mostRecentTimeStamp","create","config","interactionState","handle","shouldCancelClick","timeout","stateID","Math","random","panHandlers","onStartShouldSetResponder","event","onStartShouldSetPanResponder","onMoveShouldSetResponder","onMoveShouldSetPanResponder","onStartShouldSetResponderCapture","nativeEvent","touches","length","onStartShouldSetPanResponderCapture","onMoveShouldSetResponderCapture","onMoveShouldSetPanResponderCapture","onResponderGrant","createInteractionHandle","clearInteractionTimeout","onPanResponderGrant","onShouldBlockNativeResponder","onResponderReject","clearInteractionHandle","onPanResponderReject","onResponderRelease","onPanResponderRelease","setInteractionTimeout","onResponderStart","onPanResponderStart","onResponderMove","onPanResponderMove","onResponderEnd","onPanResponderEnd","onResponderTerminate","onPanResponderTerminate","onResponderTerminationRequest","onPanResponderTerminationRequest","onClickCapture","stopPropagation","preventDefault","getInteractionHandle","callback","clearTimeout","setTimeout","PanResponder_default","default"],"sources":["../../../../../src/vendor/react-native/PanResponder/index.tsx"],"sourcesContent":[null],"mappings":"AASA,SAASA,kBAAA,QAA0B;AAEnC,OAAOC,gBAAA,MAAsB;AAI7B,IAAAC,qCAAM,GAAAD,gBACJ,CAAAC,qCAAiB;EAAAC,qCACb,GAAAF,gBACJ,CAAAE,qCAAiB;EAAAC,sCACb,GAAAH,gBACJ,CAAAG,sCAAiB;EAAAC,sCACb,GAAAJ,gBACJ,CAAAI,sCAAiB;EAAAC,gBACb,GAAAL,gBAAmB,CAAAK,gBAAiB;EAAAC,gBACpC,GAAAN,gBAAmB,CAAAM,gBAAiB;EAAAC,YA8LpC;IAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;IAgEnBC,wBAAwBC,YAAA,EAA4B;MAClDA,YAAA,CAAaC,KAAA,GAAQ,GACrBD,YAAA,CAAaE,KAAA,GAAQ,GACrBF,YAAA,CAAaG,EAAA,GAAK,GAClBH,YAAA,CAAaI,EAAA,GAAK,GAClBJ,YAAA,CAAaK,EAAA,GAAK,GAClBL,YAAA,CAAaM,EAAA,GAAK,GAClBN,YAAA,CAAaO,EAAA,GAAK,GAClBP,YAAA,CAAaQ,EAAA,GAAK,GAClBR,YAAA,CAAaS,mBAAA,GAAsB,GAEnCT,YAAA,CAAaU,qBAAA,G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