Skip to content

Commit

Permalink
Mouse: Reset click event suppression on next mousedown. Fixes #6946 -…
Browse files Browse the repository at this point in the history
… Mouse: click event suppressed after drag in Gecko
  • Loading branch information
joshvarner authored and gnarf committed Mar 8, 2011
1 parent 18ad8ff commit 0680b59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/jquery.ui.mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0680b59

Please sign in to comment.