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
This commit is contained in:
parent
46a97dfe3d
commit
29b6407cdc
1 changed files with 5 additions and 0 deletions
|
@ -276,6 +276,11 @@ export class MinimapManager {
|
||||||
this.gl.prepareTriangles(this.gl.viewport, len)
|
this.gl.prepareTriangles(this.gl.viewport, len)
|
||||||
this.gl.setFillColor(this.colors.viewportFill)
|
this.gl.setFillColor(this.colors.viewportFill)
|
||||||
this.gl.drawTrianglesTransparently(len)
|
this.gl.drawTrianglesTransparently(len)
|
||||||
|
if (this.editor.environment.isSafari) {
|
||||||
|
this.gl.drawTrianglesTransparently(len)
|
||||||
|
this.gl.drawTrianglesTransparently(len)
|
||||||
|
this.gl.drawTrianglesTransparently(len)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
drawCollaborators() {
|
drawCollaborators() {
|
||||||
|
|
Loading…
Reference in a new issue