loll Posted July 12, 2020 Share Posted July 12, 2020 Using the draggable method, I am able to drag and drop an item on to another item tapping into the OnClick method, is there a way to attach the item to the mouse so you can click and drag as well as full dragging. click to start the drag and click to end the drag and have the item follow the mouse like it does using drag method? Link to comment Share on other sites More sharing options...
GreenSock Posted July 12, 2020 Share Posted July 12, 2020 Sounds like a pretty confusing UX to me, but is this what you want?: See the Pen 9a8dab71f2b3c4fcaa15f76ae448d020?editors=0010 by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
OSUblake Posted July 12, 2020 Share Posted July 12, 2020 What is dragMode? Never seen that before. Link to comment Share on other sites More sharing options...
GreenSock Posted July 12, 2020 Share Posted July 12, 2020 1 hour ago, OSUblake said: What is dragMode? Never seen that before. Oh, it's just an arbitrary property name I added to the instance. No significance whatsoever. It just seemed easier than doing a loop and creating a variable for each one. Link to comment Share on other sites More sharing options...
OSUblake Posted July 12, 2020 Share Posted July 12, 2020 Ah, ok. Still pretty interesting. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now