mirror of
https://github.com/mathuo/dockview
synced 2025-02-13 20:05:46 +00:00
Merge pull request #302 from mathuo/230-explore-floating-groups
230 explore floating groups
This commit is contained in:
commit
7f5f34d6f2
@ -80,14 +80,6 @@ export class Tab extends CompositeDisposable implements ITab {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: alternative to stopPropagation
|
||||
*
|
||||
* I need to stop the event propagation here since otherwise it'll be intercepted by event handlers
|
||||
* on the tabs-container. I cannot use event.preventDefault() since I need the on DragStart event to occur
|
||||
*/
|
||||
event.stopPropagation();
|
||||
|
||||
this._onChanged.fire(event);
|
||||
})
|
||||
);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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, {
|
||||
overlay.setupDrag(group.element, {
|
||||
inDragMode:
|
||||
typeof options?.inDragMode === 'boolean'
|
||||
? options.inDragMode
|
||||
: false,
|
||||
});
|
||||
}
|
||||
|
||||
const floatingGroupPanel = new DockviewFloatingGroupPanel(
|
||||
group,
|
||||
|
Loading…
Reference in New Issue
Block a user