Commit 214663f
authored
[macOS] Fix rotation (#3122)
## Description
Turns out that rotation on macOS works in opposite direction comparing to other platforms. This PR fixes that behavior.
## Test plan
<details>
<summary>Tested on the following code (check `rotation` value in event)</summary>
```tsx
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
export default function EmptyExample() {
const g = Gesture.Rotation().onChange(console.log);
return (
<View style={styles.container}>
<GestureDetector gesture={g}>
<View style={{ width: 300, height: 300, backgroundColor: 'red' }} />
</GestureDetector>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
});
```
</details>1 parent 5b41fb1 commit 214663f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments