Skip to content

Commit

Permalink
🐛 Fix initial loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneegans committed Mar 10, 2024
1 parent 5963005 commit 5508d17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,10 @@ export class Menu extends EventEmitter {
* @returns The position of the currently active node.
*/
private getActiveNodePosition() {
if (this.selectionChain.length === 0) {
return { x: 0, y: 0 };
}

const position = {
x: this.root.position.x,
y: this.root.position.y,
Expand Down

0 comments on commit 5508d17

Please sign in to comment.