Merge pull request #303 from mathuo/230-explore-floating-groups

fix: limit drag handle scope
This commit is contained in:
mathuo 2023-07-17 19:50:23 +01:00 committed by GitHub
commit 8f94f0a3c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,7 +351,13 @@ export class DockviewComponent
minimumInViewportHeight: 100, minimumInViewportHeight: 100,
}); });
overlay.setupDrag(group.element, { const el = group.element.querySelector('void-container');
if (!el) {
throw new Error('failed to find drag handle');
}
overlay.setupDrag(<HTMLElement>el, {
inDragMode: inDragMode:
typeof options?.inDragMode === 'boolean' typeof options?.inDragMode === 'boolean'
? options.inDragMode ? options.inDragMode