Skip to content

Commit

Permalink
Mouse: Always call event.preventDefault() in _mouseDown if we've met …
Browse files Browse the repository at this point in the history
…the starting conditions. Fixes #6174 - Mouse: 1.4.3rc2 breaks interactions on anchors.
  • Loading branch information
scottgonzalez committed Oct 13, 2010
1 parent 060af83 commit a829697
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ui/jquery.ui.mouse.js
Expand Up @@ -86,11 +86,7 @@ $.widget("ui.mouse", {
.bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
.bind('mouseup.'+this.widgetName, this._mouseUpDelegate);

// preventDefault() is used to prevent the selection of text here -
// however, in Safari, this causes select boxes not to be selectable
// anymore, so this fix is needed
($.browser.safari || event.preventDefault());

event.preventDefault();
event.originalEvent.mouseHandled = true;
return true;
},
Expand Down

0 comments on commit a829697

Please sign in to comment.