aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-02-14 04:27:31 +0000
committerScott González <scott.gonzalez@gmail.com>2009-02-14 04:27:31 +0000
commitf869dab6b00f32cb598457261d4d9c369ff04dc5 (patch)
treea82899dce576e24769d96af0fda555c59ea2f4ce /ui
parenta7eb669c01193a2af4b3fd1eb8588ccf032d22c3 (diff)
downloadjquery-ui-f869dab6b00f32cb598457261d4d9c369ff04dc5.tar.gz
jquery-ui-f869dab6b00f32cb598457261d4d9c369ff04dc5.zip
Mouse: Fixed #4146: Don't set the flag to prevent click events if mouseup occurs on a diferent element than mousedown (was preventing the next click event from occuring).
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index 492e3a3ea..7e5a238c7 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -484,7 +484,7 @@ $.ui.mouse = {
if (this._mouseStarted) {
this._mouseStarted = false;
- this._preventClickEvent = true;
+ this._preventClickEvent = (event.target == this._mouseDownEvent.target);
this._mouseStop(event);
}