Skip to content
Permalink
Browse files

draggable: if cursorAt was used, revert was reverting to the wrong po…

…sition (fixes #3699)
  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Jan 8, 2009
1 parent 779523c commit 89338159e41c2d35f1f2ed2a6a0ddfc55b122767
Showing with 5 additions and 3 deletions.
  1. +5 −3 ui/ui.draggable.js
@@ -90,15 +90,17 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper
});

//Adjust the mouse offset relative to the helper if 'cursorAt' is supplied
if(o.cursorAt)
this._adjustOffsetFromHelper(o.cursorAt);


//Generate the original position
this.originalPosition = this._generatePosition(event);
this.originalPageX = event.pageX;
this.originalPageY = event.pageY;

//Adjust the mouse offset relative to the helper if 'cursorAt' is supplied
if(o.cursorAt)
this._adjustOffsetFromHelper(o.cursorAt);

//Set a containment if given in the options
if(o.containment)
this._setContainment();

0 comments on commit 8933815

Please sign in to comment.
You can’t perform that action at this time.