Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#9724 closed bug (fixed)

Draggable: Snapping coordinates thrown off by margin on draggable

Reported by: kyleguate Owned by:
Priority: minor Milestone: 1.11.2
Component: ui.draggable Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:

Description

JQuery UI Draggable + Snappable False Positives

https://forum.jquery.com/topic/jquery-ui-draggable-snappable-false-positives#14737000004954871

JQuery 1.10.1, UI 1.10.3 - http://jsfiddle.net/95qAk/33/ JQuery 2.0.2, UI 1.10.3 - http://jsfiddle.net/95qAk/35/ JQuery 1.9.1, UI 1.9.2 - http://jsfiddle.net/95qAk/36/ JQuery 1.8.3, UI 1.9.2 - http://jsfiddle.net/95qAk/37/

Tested on Windows 7 Professional x64

  • Chrome (extensions disabled) v. 31.0.1650.63 m
  • Firefox (safe mode) v. 25.0.1

Change History (4)

comment:1 Changed 3 years ago by tj.vantoll

Status: newopen
Summary: JQuery UI Draggable + Snappable False PositivesDraggable: Snapping coordinates thrown off by margin on draggable

The logic appears to be thrown off by the margin on the draggable; if I remove the margin this works fine: http://jsfiddle.net/tj_vantoll/udZm6/.

This likely has the same underlying cause as #6876.

comment:2 Changed 3 years ago by kyleguate

I can remove the margin as a work around. Thanks!

comment:3 Changed 3 years ago by Mike Sherov

Resolution: fixed
Status: openclosed

Draggable: Account for margins when snapping

Fixes #9724

Changeset: 2d03839c07a33d14ec7b31b2d4290a8ce6fc0cef

comment:4 Changed 3 years ago by mikesherov

Milestone: none1.11.2
Note: See TracTickets for help on using tickets.