mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-10 16:09:35 -04:00
make sure draw logic works with multiple repls
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user