aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-01-28 01:21:50 +0000
committerScott González <scott.gonzalez@gmail.com>2009-01-28 01:21:50 +0000
commitcc3064b1f93a782d1522e7f99d65eacecec14b31 (patch)
tree15edf05f1b5a39feb9bbbce478e0cb7838bc21f0 /ui
parent61f39e196b0d6e7a00a323dc5240f0f742b9d61b (diff)
downloadjquery-ui-cc3064b1f93a782d1522e7f99d65eacecec14b31.tar.gz
jquery-ui-cc3064b1f93a782d1522e7f99d65eacecec14b31.zip
Mouse: Fixed #3552, reverted r1763: Let mouse events propagate.
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.core.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index 70fab6e26..a6e76436d 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -412,6 +412,9 @@ $.ui.mouse = {
},
_mouseDown: function(event) {
+ // don't let more than one widget handle mouseStart
+ if (event.originalEvent.mouseHandled) { return; }
+
// we may have missed mouseup (out of window)
(this._mouseStarted && this._mouseUp(event));
@@ -455,11 +458,7 @@ $.ui.mouse = {
// anymore, so this fix is needed
($.browser.safari || event.preventDefault());
- // was changed to return true in rev 1000 because that allows the
- // event to bubble - however, exactly that causes much pain for
- // nested widgets, so we call stopPropagation(). Building a work-
- // around for the above is much easier.
- event.stopPropagation();
+ event.originalEvent.mouseHandled = true;
return true;
},