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:
Steve Ruiz 2024-04-10 15:12:08 +01:00 committed by GitHub
parent 2cc8f44f83
commit b3a1db90ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,