]> source.dussan.org Git - jquery-ui.git/commitdiff
Mouse: Always call event.preventDefault() in _mouseDown if we've met the starting...
authorScott González <scott.gonzalez@gmail.com>
Wed, 13 Oct 2010 17:30:50 +0000 (13:30 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 13 Oct 2010 17:30:50 +0000 (13:30 -0400)
ui/jquery.ui.mouse.js

index 144bb80da7b7f3bd2ca9f71c65f3ce15d1796197..bdeb46c66c2e8d3182a8ff95a8e16cf06c703b40 100644 (file)
@@ -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;
        },