Pinch differences between v9 and v10 #559
Unanswered
agusterodin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @agusterodin, what exactly are you trying to do? Are you still trying to zoom in and out? If so just use the scale values and forget about trying to map distance with a scale factor. New scale values are much more reliable. The demo folder is filled with examples that you can have a look at. If you still want to use raw distance, then you can use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! I am converting somebody else's useGesture code from v9 to v10. I am attempting to get the usePinch portion working again.
I noticed in the breaking changes list that "
state.movement
andstate.offset
now reflect scale and not distance".How do i emulate the old behavior of going off of distance? The value of scale appears to grow a lot differently (seems to grow exponentially instead of linearly now).
Beta Was this translation helpful? Give feedback.
All reactions