Search and Top Navigation
#3699 closed bug (fixed)
Opened December 26, 2008 07:36PM UTC
Closed January 08, 2009 01:40PM UTC
ui.draggable helper must back where it starts
Reported by: | Pavel.Mileshchenko | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.7 |
Component: | ui.draggable | Version: | 1.6rc2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When you create draggable with cursorAt and revert oprtions it backs to wrong place. Here is Example:
$jQuery('.square > img').draggable({
, revert: true must return where it start
jump to somewhere at begining
, cursorAt: {top: 20, left: 20}
});
To fix it you need to change an order in source code on line 93 like this:
Generate the original position
this.originalPosition = this._generatePosition(event);
Adjust the mouse offset relative to the helper if 'cursorAt' is supplied
if(o.cursorAt)
this._adjustOffsetFromHelper(o.cursorAt);
Thank you.