Make stories accessible with collapsed left pane

This commit is contained in:
Josh Perez 2023-01-12 19:04:49 -05:00 committed by GitHub
parent a3877ef747
commit 4bbf5eb5d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 15 deletions

View file

@ -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),
};
}