Forum Discussion
Custom Drag and Drop - How to Eliminate Snap to Center
I'm using Articulate 360. I'm creating a custom drag and drop (not using the built-in form) with a single draggable object and four drop targets (three incorrect and one correct). If it drops on an incorrect area, I want to play audio feedback and change the state of a graphic so that area is shaded. If it lands on a correct area, I want to play audio and then advance to the next slide. I have it set up with triggers.
I have two questions:
1) The draggable object is snapping to the center of the targets when dropped. I want it to stay in the same position where it was dropped.
2) Can I return the draggable object to its original location if it dropped outside of the four allowable areas?
Thanks!
- MichaelHinzeCommunity Member
Re 1.) Right-click on your drop targets, select Drag and Drop> Free
Re 2.) Right-click your drag object, select Drag and Drop> Drag Return
- JoyceAurik-26dfCommunity Member
Thanks Michael! Wouldn't have thought if this myself, really helpful :)
- NancyHydeCommunity Member
Perfect! Thanks!
- DawnChamberlin-Community Member
I need the object that is dropped on the "wrong" target to stay where the user placed it. I have set it to "Free," but it still keeps snapping to the center. Are there any other options?
Hi Dawn!
You'll want to uncheck "Snap dropped items to drop target". This will leave the items where the user drops them.
- DawnChamberlin-Community Member
Thanks Lauren. Unfortunately, that does not work either. I have tried every option. It appears that the old bug is back where if you have a button with states that need to change as it is hovered over, dragged or dropped onto the stage then the snap options, or lack there of, do not work and the object always snaps to the center of the "wrong" target area.
- RenGomezStaff
Hi Dawn,
Sorry to hear that you've tried everything and still aren't able to get it working!
With your permission, I'd like to take a look at your project file to investigate what's happening. You can share it publicly here, or you can send it to me privately here. I'll delete it when I'm done troubleshooting.
- DawnChamberlin-Community Member
Thanks Ren. I have sent a small sample file through the private channel.
- CarmenBernadou_Community Member
Hi there! I'm having this same problem, have you found any workaround?
Many thanks!
- RenGomezStaff
Hi Carmen,
Sorry you're coming across the same issue! It looks like we've noted this is a possible software bug. Now that you're subscribed to this conversation, we'll be sure to pop in here and share any updates.
We were able to offer Dawn a workaround. Feel free to get in touch with our support engineers as they may be able to help troubleshoot your specific interaction!
- GhislaineLau946Community Member
Hi everyone,
Has this bug been corrected? I have created a Freeform drag-and-drop interaction, where users can drag multiple objects and drop them anywhere on the screen. I have tried unchecking "Snap dropped items to drop target" or choosing "Free" and objects still snap to an offset location. When I drag and drop an object (object #2) near an object that has already been dropped (object #1), object #1 changes location! My intention here is for users to design a poster by clicking and dragging multiple design elements (objects) onto a blank background. The objects do not stay where they are dropped, or, when dropped, affect the position of other objects! Is there a way around this?