Skip to content

Commit b6bafe1

Browse files
authored
fix titlebar drag region dbl-click (microsoft#167090)
fixes microsoft#159010
1 parent bf3af9a commit b6bafe1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/browser/parts/titlebar/titlebarPart.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ export class TitlebarPart extends Part implements ITitleService {
232232
this.element = parent;
233233
this.rootContainer = append(parent, $('.titlebar-container'));
234234

235-
// Draggable region that we can manipulate for #52522
236-
this.dragRegion = prepend(this.rootContainer, $('div.titlebar-drag-region'));
237-
238235
// App Icon (Native Windows/Linux and Web)
239236
if (!isMacintosh && !isWeb) {
240237
this.appIcon = prepend(this.rootContainer, $('a.window-appicon'));
@@ -254,6 +251,9 @@ export class TitlebarPart extends Part implements ITitleService {
254251
}
255252
}
256253

254+
// Draggable region that we can manipulate for #52522
255+
this.dragRegion = prepend(this.rootContainer, $('div.titlebar-drag-region'));
256+
257257
// Menubar: install a custom menu bar depending on configuration
258258
// and when not in activity bar
259259
if (this.titleBarStyle !== 'native'

0 commit comments

Comments
 (0)