Opened 14 years ago
Closed 14 years ago
#3699 closed bug (fixed)
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.
Change History (2)
comment:1 Changed 14 years ago by
Milestone: | TBD → 1.6 |
---|
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Fixed in r1556, thanks!