fix signature canvas minimize

This commit is contained in:
Pete Matsyburka committed 2026-04-30 14:51:24 +03:00
1 parent bf6eed4ea2
commit 2dec099f20
3 files changed
+3

No files matched your search

@@ -14,6 +14,7 @@ export default targetable(class extends HTMLElement {
this.resizeObserver = new ResizeObserver(() => {
requestAnimationFrame(() => {
if (!this.canvas) return
if (!this.canvas.parentNode?.clientWidth) return
const { width, height } = this.canvas