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:


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)


Thank you.

Change History (2)

comment:1 Changed 14 years ago by Scott González

Milestone: TBD1.6

comment:2 Changed 14 years ago by paul

Resolution: fixed
Status: newclosed

Fixed in r1556, thanks!

Note: See TracTickets for help on using tickets.