File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,6 @@ $.widget( "ui.draggable", {
52
52
this . element . css ( "position" , "relative" ) ;
53
53
}
54
54
55
- // Prevent browser from hijacking drag
56
- this . element . disableSelection ( ) ;
57
-
58
55
// Using proxy to avoid anon functions using self to pass "this" along
59
56
this . element . bind ( "mousedown." + this . widgetName , $ . proxy ( this . _mouseDown , this ) ) ;
60
57
@@ -111,6 +108,9 @@ $.widget( "ui.draggable", {
111
108
} ,
112
109
113
110
_mouseDown : function ( event ) {
111
+
112
+ // Stop browser from highlighting, among other things
113
+ event . preventDefault ( ) ;
114
114
115
115
// The actual dragging element, should always be a jQuery object
116
116
this . dragEl = this . element ;
@@ -147,8 +147,7 @@ $.widget( "ui.draggable", {
147
147
this . dragEl
148
148
. css ( {
149
149
position : "absolute"
150
- } )
151
- . disableSelection ( ) ;
150
+ } ) ;
152
151
153
152
$ ( "body" ) . append ( this . dragEl ) ;
154
153
You can’t perform that action at this time.
0 commit comments