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:
parent
e82b0a6c8f
commit
b56c4dd225
1 changed files with 1 additions and 3 deletions
|
@ -134,9 +134,7 @@ export class MinimapManager {
|
|||
}
|
||||
|
||||
@computed getZoom() {
|
||||
const cpb = this.getCanvasPageBounds()
|
||||
const vp = this.editor.getViewportPageBounds()
|
||||
return cpb.width / vp.width
|
||||
return this.getCanvasPageBounds().width / this.getCanvasScreenBounds().width
|
||||
}
|
||||
|
||||
@computed getCanvasPageBoundsArray() {
|
||||
|
|
Loading…
Reference in a new issue