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
pull/3566/head
Steve Ruiz 2024-04-23 11:42:03 +01:00 zatwierdzone przez GitHub
rodzic e82b0a6c8f
commit b56c4dd225
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -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() {