From: awgy Date: Sat, 5 Feb 2011 08:13:55 +0000 (-0600) Subject: Mouse: Reset click event suppression on next mousedown. Fixes #6946 - Mouse: click... X-Git-Tag: 1.8.11~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15aec63edc10bffcce638ff5244b5faba1ef51fd;p=jquery-ui.git Mouse: Reset click event suppression on next mousedown. Fixes #6946 - Mouse: click event suppressed after drag in Gecko(cherry picked from commit 548bdb12a116771b34a99ba97769ddef22f7d156) --- 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);