#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 9 years ago by
Status: | new → open |
---|---|
Summary: | JQuery UI Draggable + Snappable False Positives → Draggable: Snapping coordinates thrown off by margin on draggable |
comment:3 Changed 9 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Draggable: Account for margins when snapping
Fixes #9724
Changeset: 2d03839c07a33d14ec7b31b2d4290a8ce6fc0cef
comment:4 Changed 9 years ago by
Milestone: | none → 1.11.2 |
---|
Note: See
TracTickets for help on using
tickets.
The logic appears to be thrown off by the
margin
on the draggable; if I remove themargin
this works fine: http://jsfiddle.net/tj_vantoll/udZm6/.This likely has the same underlying cause as #6876.