mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: Partial fix for #3726: Using this._trigger() instead of this.element.triggerHandler().
This commit is contained in:
parent
8b9312a064
commit
f65478c620
@ -340,7 +340,8 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
|
|||||||
_propagate: function(n, event) {
|
_propagate: function(n, event) {
|
||||||
$.ui.plugin.call(this, n, [event, this._uiHash()]);
|
$.ui.plugin.call(this, n, [event, this._uiHash()]);
|
||||||
if(n == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins
|
if(n == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins
|
||||||
return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [event, this._uiHash()], this.options[n]);
|
this._trigger(n, event, this._uiHash());
|
||||||
|
return event.returnValue;
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: {},
|
plugins: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user