diff --git a/src/App/App.tsx b/src/App/App.tsx index e06bc1a..385a742 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -215,7 +215,14 @@ export function App() { throw error; // probably a bug in the interpreter } } - setTime({kind: "paused", simtime: 0}); + setTime(time => { + if (time.kind === "paused") { + return {...time, simtime: 0}; + } + else { + return {...time, since: {simtime: 0, wallclktime: performance.now()}}; + } + }); scrollDownSidebar(); }, [ast, scrollDownSidebar, setTime, setTrace]); @@ -399,7 +406,7 @@ export function App() { flex: '0 0 content', overflowY: "auto", overflowX: "visible", - maxWidth: 'min(400px,50vw)', + maxWidth: '50vw', }}>