Mouse: Reset click event suppression on next mousedown. Fixes #6946 - Mouse: click event suppressed after drag in Gecko

This commit is contained in:
awgy 2011-02-05 02:13:55 -06:00
parent d808f933eb
commit 548bdb12a1

View File

@ -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);