Ticket #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: | ||
| Blocking: | Blocked by: |
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
Note: See
TracTickets for help on using
tickets.

