From: Scott González Date: Wed, 13 Oct 2010 17:30:50 +0000 (-0400) Subject: Mouse: Always call event.preventDefault() in _mouseDown if we've met the starting... X-Git-Tag: 1.8.6~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a829697d0c9083438bde3a2e47964c29bfbc9417;p=jquery-ui.git Mouse: Always call event.preventDefault() in _mouseDown if we've met the starting conditions. Fixes #6174 - Mouse: 1.4.3rc2 breaks interactions on anchors. --- 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; },