Remove minimap throttling (#3438)
Our throttling isn't right for the minimap. Yanking this back. ### Change Type - [x] `sdk` — Changes the tldraw SDK - [x] `bugfix` — Bug fix
This commit is contained in:
parent
2cc8f44f83
commit
b3a1db90ec
1 changed files with 2 additions and 3 deletions
|
@ -6,7 +6,6 @@ import {
|
||||||
TLShapeId,
|
TLShapeId,
|
||||||
Vec,
|
Vec,
|
||||||
clamp,
|
clamp,
|
||||||
throttle,
|
|
||||||
uniqueId,
|
uniqueId,
|
||||||
} from '@tldraw/editor'
|
} from '@tldraw/editor'
|
||||||
|
|
||||||
|
@ -182,7 +181,7 @@ export class MinimapManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
render = throttle(() => {
|
render = () => {
|
||||||
const { cvs, pageBounds } = this
|
const { cvs, pageBounds } = this
|
||||||
this.updateCanvasPageBounds()
|
this.updateCanvasPageBounds()
|
||||||
|
|
||||||
|
@ -339,7 +338,7 @@ export class MinimapManager {
|
||||||
ctx.strokeRect(minX + 1 / sx, minY + 1 / sy, width - 2 / sx, height - 2 / sy)
|
ctx.strokeRect(minX + 1 / sx, minY + 1 / sy, width - 2 / sx, height - 2 / sy)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 32)
|
}
|
||||||
|
|
||||||
static roundedRect(
|
static roundedRect(
|
||||||
ctx: CanvasRenderingContext2D | Path2D,
|
ctx: CanvasRenderingContext2D | Path2D,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue