[Cleanup] Fix node background drawn twice / misc (#1040)

This commit is contained in:
filtered
2025-05-11 00:47:48 +10:00
committed by GitHub
parent d452240936
commit 6ff80cfd36
6 changed files with 20 additions and 14 deletions

View File

@@ -128,9 +128,7 @@ export class DragAndScale {
} else if (value > this.max_scale) {
value = this.max_scale
}
if (value == this.scale) return
if (!this.element) return
const rect = this.element.getBoundingClientRect()
if (!rect) return