r1556 - trunk/ui
r1556 - trunk/ui
Author: paul.bakaus
Date: Thu Jan 8 05:39:58 2009
New Revision: 1556
Modified:
trunk/ui/ui.draggable.js
Log:
draggable: if cursorAt was used, revert was reverting to the wrong position
(fixes #3699)
Modified: trunk/ui/ui.draggable.js
==============================================================================
--- trunk/ui/ui.draggable.js (original)
+++ trunk/ui/ui.draggable.js Thu Jan 8 05:39:58 2009
@@ -90,14 +90,16 @@
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)