Commit 8bfaefa
authored
[macOS] Add coordinates to
## Description
I've noticed that on `macOS` `Hover` gesture does not provide
coordinates, while on other platforms it does. This PR fixes this
mismatch.
## Test plan
<details>
<summary>Details</summary>
```tsx
import { View } from 'react-native';
import {
GestureDetector,
GestureHandlerRootView,
useHoverGesture,
} from 'react-native-gesture-handler';
export default function App() {
const hover = useHoverGesture({
onBegin: (e) => console.log(e),
});
return (
<GestureHandlerRootView>
<GestureDetector gesture={hover}>
<View style={{ width: 100, height: 100, backgroundColor: 'red' }} />
</GestureDetector>
</GestureHandlerRootView>
);
}
```
</details>Hover events (#4304)1 parent ee147ab commit 8bfaefa
1 file changed
Lines changed: 22 additions & 25 deletions
Lines changed: 22 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
205 | 217 | | |
206 | 218 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
232 | 229 | | |
233 | 230 | | |
234 | 231 | | |
| |||
0 commit comments