From 20e87070a6498ffe89848859c5ee6329d98702bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 20 Jan 2012 22:07:52 -0500 Subject: [PATCH] Draggable: Don't change position on drag stop. --- ui/jquery.ui.draggable.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index 4d6422a52..962d2fb7c 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -107,9 +107,8 @@ $.widget( "ui.draggable", $.ui.interaction, { _stop: function( event, 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 ) { - this._setCss(); if ( this.options.helper ) { this.dragEl.remove(); }