]> source.dussan.org Git - jquery-ui.git/commitdiff
Mouse: Fixed #4146: Don't set the flag to prevent click events if mouseup occurs...
authorScott González <scott.gonzalez@gmail.com>
Sat, 14 Feb 2009 04:27:31 +0000 (04:27 +0000)
committerScott González <scott.gonzalez@gmail.com>
Sat, 14 Feb 2009 04:27:31 +0000 (04:27 +0000)
ui/ui.core.js

index 492e3a3ea28edf4aafff411d31a4c45a90961ace..7e5a238c7d5bf552104583babf8911fa1519c642 100644 (file)
@@ -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);
                }