mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-22 07:15:47 +00:00
be4e214133
drawCurve read offsetWidth/offsetHeight unconditionally. When the canvas sits inside a collapsed <details> (SettingsSubSection) on first paint, both are 0, innerW becomes negative, the points-loop never runs, and points[0][0] throws. Linux WebKitGTK happens to lay out the details expanded on first render; macOS WebKit does not, so the same code path unmounted the entire React tree because there is no ErrorBoundary above Settings. Bail early when innerW or innerH is non-positive — the ResizeObserver already triggers a redraw once the canvas gets real dimensions. Closes #382.