From e16e3d93425cc0885a73db33d3d2a53f12534f42 Mon Sep 17 00:00:00 2001 From: Micah Galizia Date: Mon, 15 Jul 2024 22:49:11 -0400 Subject: [PATCH] fix: don't break build --- packages/mui/src/utils/contentworker.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/mui/src/utils/contentworker.ts b/packages/mui/src/utils/contentworker.ts index f500905..099ae4a 100644 --- a/packages/mui/src/utils/contentworker.ts +++ b/packages/mui/src/utils/contentworker.ts @@ -36,7 +36,6 @@ let _zoom: number; const _zoom_step = 0.5; let _max_zoom: number; let _first_zoom_step: number; -let _frame: number; let _things_on_top_of_overlay = false; // canvas width and height (sent from main thread) @@ -403,7 +402,7 @@ function animateBrush() { if (!recording) return; renderImage(overlayCtx, imageCanvasses, _angle); renderBrush(startX, startY, brush, false); - _frame = requestAnimationFrame(() => animateBrush()); + requestAnimationFrame(() => animateBrush()); } function animateSelection() { @@ -425,7 +424,7 @@ function animateSelection() { renderVisibleCanvasses(); } - _frame = requestAnimationFrame(animateSelection); + requestAnimationFrame(animateSelection); } function adjustZoom(zoom: number, x: number, y: number) {