Jump to content
Search Community

Draggable TransformOrigin Isn't working in React

blumaa@gmail.com test
Moderator Tag

Recommended Posts

I would say that you need to set transformOrigin to center center

 

transformOrigin: "center center" 

 

But that doesn't make it work 🙃

 

EDIT:

Ok, I think this is what you want, it spins from the center of the wrapper. Just take a look to the position relative/absolute I added https://codesandbox.io/s/beautiful-ptolemy-mtmeq?fontsize=14&hidenavigation=1&theme=dark

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...