feat: simplify logic

This commit is contained in:
mathuo 2023-07-16 19:41:39 +01:00
parent 59aa2723fc
commit e234312e03
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
2 changed files with 6 additions and 11 deletions

View File

@ -28,7 +28,6 @@ export class VoidContainer extends CompositeDisposable {
this._element = document.createElement('div');
this._element.className = 'void-container';
this._element.id = 'dv-group-float-drag-handle';
this._element.tabIndex = 0;
this._element.draggable = true;

View File

@ -351,16 +351,12 @@ export class DockviewComponent
minimumInViewportHeight: 100,
});
const el = group.element.querySelector('#dv-group-float-drag-handle');
if (el) {
overlay.setupDrag(el as HTMLElement, {
inDragMode:
typeof options?.inDragMode === 'boolean'
? options.inDragMode
: false,
});
}
overlay.setupDrag(group.element, {
inDragMode:
typeof options?.inDragMode === 'boolean'
? options.inDragMode
: false,
});
const floatingGroupPanel = new DockviewFloatingGroupPanel(
group,