From 0680b59260bcc5d40e6dbdcbdc797e1801295140 Mon Sep 17 00:00:00 2001 From: awgy Date: Sat, 5 Feb 2011 02:13:55 -0600 Subject: [PATCH] Mouse: Reset click event suppression on next mousedown. Fixes #6946 - Mouse: click event suppressed after drag in Gecko --- ui/jquery.ui.mouse.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/jquery.ui.mouse.js b/ui/jquery.ui.mouse.js index f5e8b58c0..bfe4a7578 100644 --- a/ui/jquery.ui.mouse.js +++ b/ui/jquery.ui.mouse.js @@ -75,6 +75,11 @@ $.widget("ui.mouse", { } } + // Click event may never have fired (Gecko & Opera) + if (true === $.data(event.target, this.widgetName + '.preventClickEvent')) { + $.removeData(event.target, this.widgetName + '.preventClickEvent'); + } + // these delegates are required to keep context this._mouseMoveDelegate = function(event) { return self._mouseMove(event); -- 2.39.5