diff options
author | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-16 13:02:21 +0000 |
---|---|---|
committer | Paul Bakaus <paul.bakaus@googlemail.com> | 2008-09-16 13:02:21 +0000 |
commit | 9d8e83845cc92e2f5b1671b3bdf4a7d903844283 (patch) | |
tree | 16b656b47e74ed2ea195a459fd1038660b03ca5a /ui/ui.draggable.js | |
parent | cef66ee99f3924f5f74ac8c3f3190bfd125bd845 (diff) | |
download | jquery-ui-9d8e83845cc92e2f5b1671b3bdf4a7d903844283.tar.gz jquery-ui-9d8e83845cc92e2f5b1671b3bdf4a7d903844283.zip |
draggable, resizable, sortable: proper usage of _mouseCapture, fixes interaction issues when many plugins are used on the same element (Fixes #3164)
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r-- | ui/ui.draggable.js | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js index eb3d9a558..1179c7df8 100644 --- a/ui/ui.draggable.js +++ b/ui/ui.draggable.js @@ -55,18 +55,27 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, { this._mouseInit(); }, - _mouseStart: function(e) { - + + _mouseCapture: function(e) { + var o = this.options; if (this.helper || o.disabled || $(e.target).is('.ui-resizable-handle')) return false; - + //Quit if we're not on a valid handle - var handle = this.getHandle(e); - if (!handle) + this.handle = this.getHandle(e); + if (!this.handle) return false; + return true; + + }, + + _mouseStart: function(e) { + + var o = this.options; + //Create and append the visible helper this.helper = this.createHelper(); |