Screen dependent rotation angle #1465
Unanswered
pavelbabenko
asked this question in
Q&A
Replies: 1 comment
-
The alternative way is to get coordinates of 1st and 2nd pointers separately. I tried to use 2 PanGestureHandlers, but no success |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to create grid with cells. Each cell can be moved and scaled. Cells scaling should work in vertical and horizontals directions and I faced with some issues. To just move cell I obviously use PanGestureHandler, for scaling - PinchGestureHandler. Now I'm facing the issue that I can't scale item by X or Y independently. I thought of using RotateGestureHandler to get angle of my fingers and calculate scaleX, scaleY depending on it, but I can find only delta of rotation.
Can someone help me, how can I get the angle between my fingers in relation of screen?
Beta Was this translation helpful? Give feedback.
All reactions