Skip to content

Commit

Permalink
fix: don't break build
Browse files Browse the repository at this point in the history
  • Loading branch information
micahg committed Jul 16, 2024
1 parent 91e6e00 commit e16e3d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/mui/src/utils/contentworker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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() {
Expand All @@ -425,7 +424,7 @@ function animateSelection() {

renderVisibleCanvasses();
}
_frame = requestAnimationFrame(animateSelection);
requestAnimationFrame(animateSelection);
}

function adjustZoom(zoom: number, x: number, y: number) {
Expand Down

0 comments on commit e16e3d9

Please sign in to comment.