mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Draggable: Don't change position on drag stop.
This commit is contained in:
parent
30a12111d9
commit
20e87070a6
3
ui/jquery.ui.draggable.js
vendored
3
ui/jquery.ui.draggable.js
vendored
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user