make whole tabs draggable on Linux

This commit is contained in:
Eugene Pankov 2018-08-18 20:19:22 +02:00
parent 578a7c1a7b
commit d861941b15
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ $tabs-height: 36px;
flex: none; flex: none;
font-weight: bold; font-weight: bold;
-webkit-app-region: no-drag; -webkit-app-region: no-drag;
cursor: grab; cursor: -webkit-grab;
margin-left: 10px; margin-left: 10px;
width: 20px; width: 20px;
@ -71,6 +71,6 @@ $tabs-height: 36px;
} }
&.fully-draggable { &.fully-draggable {
cursor: grab; cursor: -webkit-grab;
} }
} }

View File

@ -71,7 +71,7 @@ export class TabHeaderComponent {
} }
ngOnInit () { ngOnInit () {
if (this.hostApp.platform !== Platform.macOS) { if (this.hostApp.platform === Platform.macOS) {
this.parentDraggable.setDragHandle(this.handle.nativeElement) this.parentDraggable.setDragHandle(this.handle.nativeElement)
} }
} }