Opened 8 years ago

Closed 8 years ago

#10638 closed feature (wontfix)

draggable element make it snap to the vertices around it with a high snapTolerance

Reported by: msqar Owned by:
Priority: minor Milestone: none
Component: ui.draggable Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:


Hey guys, I just wanted to make a grid with a dragged element and make it snap to the vertices around the element I'm dragging. Happens that if the snapTolerance is too high (grid size i.e: 20px) but the asset is not divisible by 20 in size... it won't snap to the next vertex but it will make a 20px jump to the next block. I don't know if I'm being clear but here's a jsfiddle that might help you understand this better.

In this example, I would like the right side to touch the next vertex before the next-block-jump. Is that possible? I can decrease the snapTolerance but the snappy effect won't be that smooth since the dragged elements may vary in sizes.

Thanks in advance.

Change History (1)

comment:1 Changed 8 years ago by Scott González

Resolution: wontfix
Status: newclosed

Snapping will be removed in the rewrite, so we won't be making changes to how snapping works in the current code.

Note: See TracTickets for help on using tickets.