Permalink
Browse files

Mouse: Reset click event suppression on next mousedown. Fixes #6946 -…

… Mouse: click event suppressed after drag in Gecko(cherry picked from commit 548bdb1)
  • Loading branch information...
1 parent 12d38b1 commit 15aec63edc10bffcce638ff5244b5faba1ef51fd @joshvarner joshvarner committed with scottgonzalez Feb 5, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 ui/jquery.ui.mouse.js
View
@@ -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);

0 comments on commit 15aec63

Please sign in to comment.