Replies: 2 comments 3 replies
-
Hi, thanks for submitting a question. Please,
|
Beta Was this translation helpful? Give feedback.
0 replies
-
If you see the transform applied to the parent div. useDrag still returns window space x-axis after rotation is applied on the parent div. Link to code sandbox |
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
In the above HTML hierarchy, I have a draggable object in a container. I have an object draggable in X-direction.
If
rotate(90deg)
CSS transform is applied on parent "transformations" div or its parents, I was expecting it to work as usual, but useDrag seems to return window-space coordinates rather than local coordinates.Beta Was this translation helpful? Give feedback.
All reactions