make sure draw logic works with multiple repls

This commit is contained in:
Felix Roos
2024-06-01 15:41:55 +02:00
parent 827993a8c9
commit 375c68775c
7 changed files with 20 additions and 16 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export function MiniRepl({
const canvasId = useMemo(() => `canvas-${id}`, [id]);
const shouldDraw = !!punchcard || !!claviature;
const shouldShowCanvas = !!punchcard;
const drawTime = punchcard ? [0, 4] : [0, 0];
const drawTime = punchcard ? [0, 4] : [-2, 2];
const [activeNotes, setActiveNotes] = useState([]);
const init = useCallback(({ code, shouldDraw }) => {