fix(renderer): derive backing size from viewport state

This commit is contained in:
syntaxbullet
2026-07-03 09:41:12 +02:00
parent dd1b892034
commit 90897e3993
2 changed files with 7 additions and 10 deletions

View File

@@ -17,8 +17,6 @@ export function CanvasViewport({ store }: CanvasViewportProps) {
const width = Math.floor(entry.contentRect.width);
const height = Math.floor(entry.contentRect.height);
canvas.width = width;
canvas.height = height;
store.dispatch("viewport.setSize", { w: width, h: height });
});