Make stories accessible with collapsed left pane
This commit is contained in:
parent
a3877ef747
commit
4bbf5eb5d4
3 changed files with 30 additions and 15 deletions
|
@ -54,17 +54,7 @@ let closeCurrentOpenContextMenu: undefined | (() => unknown);
|
|||
// right under the mouse cursor.
|
||||
function generateVirtualElement(x: number, y: number): VirtualElement {
|
||||
return {
|
||||
getBoundingClientRect: () => ({
|
||||
bottom: y,
|
||||
height: 0,
|
||||
left: x,
|
||||
right: x,
|
||||
toJSON: () => ({ x, y }),
|
||||
top: y,
|
||||
width: 0,
|
||||
x,
|
||||
y,
|
||||
}),
|
||||
getBoundingClientRect: () => new DOMRect(x, y),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue