mirror of
https://github.com/mathuo/dockview
synced 2025-02-13 20:05:46 +00:00
fix: limit drag handle scope
This commit is contained in:
parent
e234312e03
commit
37a688c874
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user