File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed
packages/next/src/next-devtools/dev-overlay/components
errors/dev-tools-indicator Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -143,17 +143,7 @@ export function Draggable({
143143 }
144144
145145 return (
146- < div
147- { ...props }
148- ref = { ref }
149- { ...drag }
150- style = { {
151- touchAction : 'none' ,
152- userSelect : 'none' ,
153- WebkitUserSelect : 'none' ,
154- ...props . style ,
155- } }
156- >
146+ < div { ...props } { ...drag } ref = { ref } >
157147 { children }
158148 </ div >
159149 )
@@ -208,6 +198,7 @@ function useDrag(options: UseDragOptions) {
208198 velocities . current = [ ]
209199
210200 ref . current ?. classList . remove ( 'dev-tools-grabbing' )
201+ ref . current ?. style . removeProperty ( '-webkit-user-select' )
211202 document . body . style . removeProperty ( 'user-select' )
212203 document . body . style . removeProperty ( '-webkit-user-select' )
213204 } , [ ] )
@@ -310,6 +301,7 @@ function useDrag(options: UseDragOptions) {
310301 machine . current = { state : 'drag' , pointerId : e . pointerId }
311302 ref . current ?. setPointerCapture ( e . pointerId )
312303 ref . current ?. classList . add ( 'dev-tools-grabbing' )
304+ ref . current ?. style . setProperty ( '-webkit-user-select' , 'none' )
313305 document . body . style . userSelect = 'none'
314306 document . body . style . webkitUserSelect = 'none'
315307 options . onDragStart ?.( )
Original file line number Diff line number Diff line change 4141 display : flex;
4242 align-items : center;
4343 white-space : pre;
44- cursor : default;
4544 color : var (--color-gray-1000 );
4645}
4746
9089 line-height : 16px ;
9190 font-size : var (--size-12 );
9291 font-weight : 500 ;
93- user-select : none;
94- cursor : pointer;
9592 background-color : var (--color-gray-300 );
9693 color : var (--color-gray-1000 );
9794}
You can’t perform that action at this time.
0 commit comments