Ticket #3699 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

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

comment:1 Changed 6 years ago by scott.gonzalez

  • Milestone changed from TBD to 1.6

comment:2 Changed 6 years ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r1556, thanks!

Note: See TracTickets for help on using tickets.