File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/vs/workbench/browser/parts/editor Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -333,8 +333,10 @@ export abstract class EditorTabsControl extends Themable implements IEditorTabsC
333
333
protected async maybeCreateAuxiliaryEditorPartAt ( e : DragEvent , offsetElement : HTMLElement ) : Promise < IAuxiliaryEditorPart | undefined > {
334
334
const { point, display } = await this . hostService . getCursorScreenPoint ( ) ?? { point : { x : e . screenX , y : e . screenY } } ;
335
335
const window = getWindow ( e ) ;
336
- if ( point . x >= window . screenX && point . x <= window . screenX + window . outerWidth && point . y >= window . screenY && point . y <= window . screenY + window . outerHeight ) {
337
- return ; // refuse to create as long as the mouse was released over main window to reduce chance of opening by accident
336
+ if ( window . document . visibilityState === 'visible' ) {
337
+ if ( point . x >= window . screenX && point . x <= window . screenX + window . outerWidth && point . y >= window . screenY && point . y <= window . screenY + window . outerHeight ) {
338
+ return ; // refuse to create as long as the mouse was released over main window to reduce chance of opening by accident
339
+ }
338
340
}
339
341
340
342
const offsetX = offsetElement . offsetWidth / 2 ;
You can’t perform that action at this time.
0 commit comments