aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/draggable.js
diff options
context:
space:
mode:
authorHannah Methvin <hannahmethvin@gmail.com>2015-10-18 12:36:43 -0400
committerHannah Methvin <hannahmethvin@gmail.com>2015-10-18 12:36:43 -0400
commita1d69208bad175a27c7b50c27fdc10001563cd4d (patch)
treec69626ed468130e03443d6ac32d856b54fd31a2e /ui/widgets/draggable.js
parentac81e39237781f72670f19b52eacceada48f76ef (diff)
downloadjquery-ui-a1d69208bad175a27c7b50c27fdc10001563cd4d.tar.gz
jquery-ui-a1d69208bad175a27c7b50c27fdc10001563cd4d.zip
Mouse: Don't stop propagation of mouseup
Fixes #10818
Diffstat (limited to 'ui/widgets/draggable.js')
-rw-r--r--ui/widgets/draggable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/widgets/draggable.js b/ui/widgets/draggable.js
index f61c38ce0..b459afe00 100644
--- a/ui/widgets/draggable.js
+++ b/ui/widgets/draggable.js
@@ -255,7 +255,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
if ( !noPropagation ) {
var ui = this._uiHash();
if ( this._trigger( "drag", event, ui ) === false ) {
- this._mouseUp( {} );
+ this._mouseUp( new $.Event( "mouseup", event ) );
return false;
}
this.position = ui.position;
@@ -322,7 +322,7 @@ $.widget( "ui.draggable", $.ui.mouse, {
cancel: function() {
if ( this.helper.is( ".ui-draggable-dragging" ) ) {
- this._mouseUp( {} );
+ this._mouseUp( new $.Event( "mouseup", { target: this.element[ 0 ] } ) );
} else {
this._clear();
}