Jump to content


Draggable within jQuery Mobile Pages

Moderator Tag
Go to solution Solved by Carl,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Any ideas why this would be happening when I try to do a draggable within a jQuery Mobile page? 




Here is my draggable code


Draggable.create(".drag1", {

Link to comment
Share on other sites

See how the mouse gets off the button. 

  • Like 1
Link to comment
Share on other sites

  • Solution

Hi and welcome to the GreenSock forums,


Thanks for the video. My only guess is that something in the jQuery realm is fighting for control of the x/y values or causing the browser to mis-report them.


The best thing you can do is provide a reduced CodePen demo. Only include a single draggable button and the bare minimum of other CSS/HTML/JS code to replicate the problem. 




You can just fork this demo and add your own code: http://codepen.io/GreenSock/pen/EKMpJJ?editors=0010

Link to comment
Share on other sites

I figured it out. I had duplicate .drag1 classes. User error ;) It is all working now. 

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