Skip to content

Commit

Permalink
Mouse: Fixed #4146: Don't set the flag to prevent click events if mou…
Browse files Browse the repository at this point in the history
…seup occurs on a diferent element than mousedown (was preventing the next click event from occuring).
  • Loading branch information
scottgonzalez committed Feb 14, 2009
1 parent a7eb669 commit f869dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ui.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ $.ui.mouse = {

if (this._mouseStarted) {
this._mouseStarted = false;
this._preventClickEvent = true;
this._preventClickEvent = (event.target == this._mouseDownEvent.target);
this._mouseStop(event);
}

Expand Down

0 comments on commit f869dab

Please sign in to comment.