Drag & drop -tile issue

Jun 11, 2021

Hi,

I made a D&D interaction in SL360.

6 drag, 2 drop areas and set Snap dropped items to drop target "tile".

At every wrong attempt the items return to initial position with move animation.

All works, but

When I try a second attempt and pick the item to drag, immediately the other items go into the drop areas.

Any hint?

Thanks

 

 

5 Replies
Maria Costa-Stienstra

Hi, Luigi, and welcome to E-Learning Heroes! ✨

Thank you for sharing your .story file! I was able to replicate the issue in your project, which is related to a bug we have reported where drag items in drag and drop interaction act erratically in succeeding attempts if the drag items have motion path.

The workaround is to change the Drop Target Option to Free:

Windows 10 (1) 2021-06-11 at 2.59.48 PM

Let me know if this works!

Jose Tansengco

HI Marla,

We're still taking a look at the bug reported in this thread but we'll be sure to let everyone subscribed know when a fix is available. Here's a quick look at how we tackle bugs. If you'd like us to take a look at your project file to confirm if you are being affected by the same bug, you can share your project file with us by opening a support case here

Walt Hamilton

I'm not sure I agree with the assessment that this is a bug.  What happens is that when you drop a dragged object, the system records it as being in the dropped spot. Then a motion path moves it, but doesn't tell the system, so the system thinks it is still in the dropped spot, When you start to drag an object, (I think) everything is redrawn so that the dragged object is above all other objects. (It has to be that way, or when you drag past another object that is higher on the z-axis, it will lose contact with the mouse, and be dropped behind that object.)

So when everything is redrawn, the objects are drawn where the system thinks they are. If setting the stacking option to free works, use it.

NOTE TO STAFF: If this is actually a bug, feel free to pass this explanation along to those who are working on it.

The way I handle it is to set up a Pick One interaction, Change dropped objects to hidden, and use a change of state to make it appear as if the object is on the target.

Here are three samples that use varying versions of that principle:

https://community.articulate.com/discussions/articulate-storyline/force-release-of-left-click-of-the-mouse-button-to-allow-drag-drop-object-to-return-to-start-if-it-intersects-with-other-object#reply-828435

https://community.articulate.com/discussions/articulate-storyline/drag-and-drop-reset-option?page=3#reply-821841


https://community.articulate.com /discussions/articulate-storyline/allow-only-one-item-in-each-drop-target-not-working#reply-814917

Perhaps one of them will give you some usable ideas. If not, and if you are absolutely committed to everything Luigi said he needed, and are willing to do a little work, There is one more sample. I absolutely guarantee it will do everything Luigi wanted, and most likely everything you need. It is at https://community.articulate.com/discussions/articulate-storyline/drag-and-drop-solution-sample-with-multiple-correct-targets-with-drag-off-and-return-plus-a-lot-more 

The Complex with reset is the slide your want.