aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-10-13 13:30:50 -0400
committerScott González <scott.gonzalez@gmail.com>2010-10-13 13:30:50 -0400
commita829697d0c9083438bde3a2e47964c29bfbc9417 (patch)
tree47bfe6925b477551d5c972fa42d40afedb2135a3 /ui
parent060af83ec9c78fb34b38388c00bb610410e46ee4 (diff)
downloadjquery-ui-a829697d0c9083438bde3a2e47964c29bfbc9417.tar.gz
jquery-ui-a829697d0c9083438bde3a2e47964c29bfbc9417.zip
Mouse: Always call event.preventDefault() in _mouseDown if we've met the starting conditions. Fixes #6174 - Mouse: 1.4.3rc2 breaks interactions on anchors.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.mouse.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/jquery.ui.mouse.js b/ui/jquery.ui.mouse.js
index 144bb80da..bdeb46c66 100644
--- a/ui/jquery.ui.mouse.js
+++ b/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;
},