MR FIX IT Posted September 2, 2022 Share Posted September 2, 2022 Hello , I'm looking for ideas on what to do when I'm on the onDrag event if there is a hitTest replace the target's clone with another item without using pixels to move items and it actually looks nice Thank you in advance See the Pen GRdRMjJ by mazthenew (@mazthenew) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted September 2, 2022 Share Posted September 2, 2022 I read your question a few times and I'm still fuzzy on what exactly you're asking. You want to allow the user to drag one element, but as soon as they press on it, it totally shifts and you create another whole cloned element that you ALSO want to move along with that same element (so now TWO of them are being dragged)? Or are you saying you want to add a clone that causes layout shifts, moving the dragging element out from underneath the pointer...but you want to force it back to where it was (under the pointer) for the duration of the drag? Please be very specific. 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