Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mouse: Always call event.preventDefault() in _mouseDown if we've met …

…the starting conditions. Fixes #6174 - Mouse: 1.4.3rc2 breaks interactions on anchors.
  • Loading branch information...
commit a829697d0c9083438bde3a2e47964c29bfbc9417 1 parent 060af83
@scottgonzalez scottgonzalez authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 ui/jquery.ui.mouse.js
View
6 ui/jquery.ui.mouse.js
@@ -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;
},
Please sign in to comment.
Something went wrong with that request. Please try again.