Draggable Overlap

32 views
Skip to first unread message

Moving Gifts

unread,
Mar 6, 2011, 9:33:28 PM3/6/11
to threedubmedia
Hello threedubmedia,

Is there any way to prevent draggables from overlapping/colliding with
one another within a container?

Moving Gifts

unread,
Mar 9, 2011, 11:55:04 AM3/9/11
to threedubmedia
Bump.

3wme

unread,
Mar 9, 2011, 1:23:22 PM3/9/11
to threed...@googlegroups.com
I have not written anything for this specific interaction, but it should be possible to implement given the incredible flexibility of these special events.

Moving Gifts

unread,
Mar 9, 2011, 5:36:50 PM3/9/11
to threedubmedia
Can you please create a demo? I've searched extensively for days, but
haven't been able to find a working solution. I am sure all those
looking for this functionality will have you to thank as the first
provider.

Simon Oberhammer

unread,
Mar 10, 2011, 10:30:22 AM3/10/11
to threed...@googlegroups.com
I'm not 100% sure I understand.

But if you mean that a group of draggable - which are all in the same container - should not register overlaps, then the drop option of event.drag is how you'd do that:

drop (Boolean|String) Default: TRUE
A boolean to indicate whether or not "drag" events are considered in the drag interaction, or a jquery selector expression that should filter and match a subset of the registered drop targets. (FALSE = No Dropping, TRUE = Drop Anywhere, ":expr" = Drop in targets that match this expression)


Reply all
Reply to author
Forward
0 new messages