Fix collaborator size with zoom (#3563)

Fix a bug with the size of collaborators.

### Change Type

- [x] `sdk` — Changes the tldraw SDK
- [x] `bugfix` — Bug fix
This commit is contained in:
Steve Ruiz 2024-04-23 11:42:03 +01:00 committed by GitHub
parent e82b0a6c8f
commit b56c4dd225
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -134,9 +134,7 @@ export class MinimapManager {
} }
@computed getZoom() { @computed getZoom() {
const cpb = this.getCanvasPageBounds() return this.getCanvasPageBounds().width / this.getCanvasScreenBounds().width
const vp = this.editor.getViewportPageBounds()
return cpb.width / vp.width
} }
@computed getCanvasPageBoundsArray() { @computed getCanvasPageBoundsArray() {