Jump to content
GreenSock

scavaliere

Rotation with Draggable stops working on first click

Recommended Posts

Hello! 
I've made a div rotation effect with different cards. 
On my Codepen I wasn't able to replicate the same behavior (it works perfectly) but on my production site the first time the page is loaded , when I click on the wheel the rotation stops (and it's ok) but I can't drag anymore. The rotation works if I move mouse from left to right, but not from top to bottom.
If I reload the drag works again without problems.  What can be the cause? Any ideas? 
I will happy to give more information if needed.

Thank you in advance! 

See the Pen yLgZNYd by scavaliere (@scavaliere) on CodePen

Link to comment
Share on other sites

  • scavaliere changed the title to Rotation with Draggable stops working on first click

Hm, it's pretty tough to troubleshoot if the CodePen works perfectly. Can you provide a link to where it's not working? I wonder if you're using a stale version of GSAP/Draggable? 

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.
×