Skip to main content

Search and Top Navigation

#10638 closed feature (wontfix)

Opened October 02, 2014 02:49PM UTC

Closed October 02, 2014 04:29PM UTC

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:
Description

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.

http://jsfiddle.net/ofk0smrf/

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.

Attachments (0)
Change History (1)

Changed October 02, 2014 04:29PM UTC by scottgonzalez comment:1

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.