Skip to content

Commit 610cb77

Browse files
authored
Fix mobile canvas resolution
1 parent 7129a11 commit 610cb77

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/KonvaTerminalCanvas.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import React, { useCallback, useRef } from 'react';
22
import ReactDOM from 'react-dom';
33
import { Stage, Layer } from 'react-konva';
4+
import Konva from 'konva';
5+
6+
Konva.pixelRatio = 1; // on mobile, stick to 1:1 size
47

58
export const KonvaTerminalCanvas: React.FC<{
69
width: number;

0 commit comments

Comments
 (0)