Draggable: Don't change position on drag stop.

This commit is contained in:
Scott González 2012-01-20 22:07:52 -05:00
parent 30a12111d9
commit 20e87070a6

View File

@ -107,9 +107,8 @@ $.widget( "ui.draggable", $.ui.interaction, {
_stop: function( event, pointerPosition ) { _stop: function( event, pointerPosition ) {
this._preparePosition( pointerPosition ); this._preparePosition( pointerPosition );
// If user cancels stop, leave helper there, disallow any CSS changes // If user cancels stop, leave helper there
if ( this._trigger( "stop", event, this._uiHash( pointerPosition ) ) !== false ) { if ( this._trigger( "stop", event, this._uiHash( pointerPosition ) ) !== false ) {
this._setCss();
if ( this.options.helper ) { if ( this.options.helper ) {
this.dragEl.remove(); this.dragEl.remove();
} }