Skip to content

Commit a829697

Browse files
committed
Mouse: Always call event.preventDefault() in _mouseDown if we've met the starting conditions. Fixes #6174 - Mouse: 1.4.3rc2 breaks interactions on anchors.
1 parent 060af83 commit a829697

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ui/jquery.ui.mouse.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@ $.widget("ui.mouse", {
8686
.bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
8787
.bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
8888

89-
// preventDefault() is used to prevent the selection of text here -
90-
// however, in Safari, this causes select boxes not to be selectable
91-
// anymore, so this fix is needed
92-
($.browser.safari || event.preventDefault());
93-
89+
event.preventDefault();
9490
event.originalEvent.mouseHandled = true;
9591
return true;
9692
},

0 commit comments

Comments
 (0)