diff options
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index 1e8fa48b9..2c668a62e 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -199,7 +199,7 @@ $.ui.mouse = { var self = this, btnIsLeft = (e.which == 1), elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).is(this.options.cancel) : false); - if (!btnIsLeft || elIsCancel) { + if (!btnIsLeft || elIsCancel || !this.mouseCapture(e)) { return true; } @@ -277,7 +277,8 @@ $.ui.mouse = { // These are placeholder methods, to be overriden by extending plugin mouseStart: function(e) {}, mouseDrag: function(e) {}, - mouseStop: function(e) {} + mouseStop: function(e) {}, + mouseCapture: function(e) { return true; } }; $.ui.mouse.defaults = { |