Replies: 4 comments
-
Facing the exact same issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
Were you able to solve this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
translateY.extractOffset(); Use this inside _onPanStateChange . It solved my issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Anant5555 instead of: _translateX.setOffset(_lastOffset.x); And _translateY.setOffset(_lastOffset.y); |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a drag and drop of images, which works almost perfectly, but I am running into 2 issues.
1: When trying to get the XY position of an image and store it on firestore. I am not able to get the correct XY value.
2: When I try to drag an image, it first gets "moved" to a certain position (e.g. x:0, y:0) while my finger is at the center of the screen. When I release the image and trying to drag it again, it seems to drag correctly.
Below is the code I use:
The console.log in the code above shows a long list of objects, but not the XY position of an image (as mentioned in point 1).
Any idea?
Package versions
Beta Was this translation helpful? Give feedback.
All reactions