Skip to content
Permalink
Browse files

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

… Mouse: click event suppressed after drag in Gecko
  • Loading branch information
joshvarner committed Feb 5, 2011
1 parent d808f93 commit 548bdb12a116771b34a99ba97769ddef22f7d156
Showing with 5 additions and 0 deletions.
  1. +5 −0 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);

0 comments on commit 548bdb1

Please sign in to comment.
You can’t perform that action at this time.