Skip to main content
captivate003p5890882
Participating Frequently
October 8, 2015
Answered

Drag sources not snapping to center

  • October 8, 2015
  • 1 reply
  • 598 views

Hi - I created a drag and drop interaction and specified that the drag sources snap to the center of the drop targets. However, they are offset to the lower right when dropped.

Some of my drop targets had shadows around the borders. I removed the shadows, and that worked. However, other drop targets did not have shadows to begin with, and those are still offset lower right.

I tried enlarging the drop target area, but that did not have an effect.

Any ideas? Thanks!!

This topic has been closed for replies.
Correct answer Lilybiri

I would love to double check over here, are those two shapes, with different stroke/fill and a text in case of the drag source?

Indeed, I see exactly the same bug in this case. It works only perfectly if you snap the top left corner, for all the other snap locations the drag source has an offset. You could use top left corner but this is definitely not what is expected. Bug appears only for SWF output.

1 reply

Lilybiri
Brainiac
October 9, 2015

Could you tell which version you are using, if this is a normal or a responsive project? Please post a screenshot of what you mean by 'offset' and the Snapping properties for that target object in the screenshot? Center for each object means the center of the bounding box, which not always will look like the center of the object if you have strange shapes.

captivate003p5890882
Participating Frequently
October 9, 2015

Thanks - I am using Captivate 8 in a normal project. Following are the snap properties and the offset result. The bounding box matches the shape.

Lilybiri
LilybiriCorrect answer
Brainiac
October 11, 2015

I would love to double check over here, are those two shapes, with different stroke/fill and a text in case of the drag source?

Indeed, I see exactly the same bug in this case. It works only perfectly if you snap the top left corner, for all the other snap locations the drag source has an offset. You could use top left corner but this is definitely not what is expected. Bug appears only for SWF output.