Set active pattern to viewing on init

This commit is contained in:
John Björk 2026-02-05 16:35:36 +01:00
parent b4e171f5b4
commit 5921bec5f4
No known key found for this signature in database
GPG key ID: 303B6ADF2F569B0A

View file

@ -71,6 +71,7 @@ export function useReplContext() {
const defaultOutput = shouldUseWebaudio ? webaudioOutput : superdirtOutput;
const getTime = shouldUseWebaudio ? getAudioContextCurrentTime : getPerformanceTimeSeconds;
const init = useCallback(() => {
setActivePattern(getViewingPatternData().id);
const drawTime = [-2, 2];
const drawContext = getDrawContext();
const editor = new StrudelMirror({