From f869dab6b00f32cb598457261d4d9c369ff04dc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Sat, 14 Feb 2009 04:27:31 +0000 Subject: [PATCH] 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). --- ui/ui.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5