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,
|
||||
Vec,
|
||||
clamp,
|
||||
throttle,
|
||||
uniqueId,
|
||||
} from '@tldraw/editor'
|
||||
|
||||
|
@ -182,7 +181,7 @@ export class MinimapManager {
|
|||
}
|
||||
}
|
||||
|
||||
render = throttle(() => {
|
||||
render = () => {
|
||||
const { cvs, pageBounds } = this
|
||||
this.updateCanvasPageBounds()
|
||||
|
||||
|
@ -339,7 +338,7 @@ export class MinimapManager {
|
|||
ctx.strokeRect(minX + 1 / sx, minY + 1 / sy, width - 2 / sx, height - 2 / sy)
|
||||
}
|
||||
}
|
||||
}, 32)
|
||||
}
|
||||
|
||||
static roundedRect(
|
||||
ctx: CanvasRenderingContext2D | Path2D,
|
||||
|
|
Loading…
Reference in a new issue