Hacky fix safari transparency (#3657)

This PR fixes the missing viewport on Safari. Blending on webgl in
Safari is cursed.

### Change Type

- [x] `sdk` — Changes the tldraw SDK
- [x] `feature` — New feature
pull/3662/head
Steve Ruiz 2024-04-30 11:47:17 +01:00 zatwierdzone przez GitHub
rodzic 46a97dfe3d
commit 29b6407cdc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -276,6 +276,11 @@ export class MinimapManager {
this.gl.prepareTriangles(this.gl.viewport, len)
this.gl.setFillColor(this.colors.viewportFill)
this.gl.drawTrianglesTransparently(len)
if (this.editor.environment.isSafari) {
this.gl.drawTrianglesTransparently(len)
this.gl.drawTrianglesTransparently(len)
this.gl.drawTrianglesTransparently(len)
}
}
drawCollaborators() {