Skip to content

Commit c18da85

Browse files
committed
fix(ssd1306): broken on safari #50
fix #50
1 parent a88c090 commit c18da85

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ssd1306-element.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ export class SSD1306Element extends LitElement {
9292
width="${screenWidth}"
9393
height="${screenHeight}"
9494
>
95-
<canvas width="${screenWidth}" height="${screenHeight}" class="pixelated"></canvas>
95+
<canvas
96+
width="${screenWidth}"
97+
height="${screenHeight}"
98+
style="position: fixed"
99+
class="pixelated"
100+
></canvas>
96101
</foreignObject>
97102
</g>
98103

0 commit comments

Comments
 (0)