Skip to main content

Search and Top Navigation

#9724 closed bug (fixed)

Opened December 31, 2013 02:00PM UTC

Closed August 14, 2014 01:50PM UTC

Last modified August 14, 2014 01:51PM UTC

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
Attachments (0)
Change History (4)

Changed December 31, 2013 07:49PM UTC by tj.vantoll comment:1

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.

Changed January 02, 2014 07:28AM UTC by kyleguate comment:2

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

Changed August 14, 2014 01:50PM UTC by Mike Sherov comment:3

resolution: → fixed
status: openclosed

Draggable: Account for margins when snapping

Fixes #9724

Changeset: 2d03839c07a33d14ec7b31b2d4290a8ce6fc0cef

Changed August 14, 2014 01:51PM UTC by mikesherov comment:4

milestone: none1.11.2