Commit 752c327
committed
fix(render-pipeline): fast-path redraw when window position unchanged (resize fix)
When requestRender fires for a pure canvas resize (ResizeObserver →
window.resize → rAF), the window position is identical to the last
render. Previously this triggered a streaming fetch from S3, which on
CI could take >15 s and cause the ResizeObserver e2e test to time out.
Now: if lastChannels covers the same startSample+windowSamples, redraw
immediately with the cached data. deviceFitCanvas picks up the new
clientWidth in that draw call, updating canvas.width synchronously.1 parent a69f9e1 commit 752c327
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
70 | 88 | | |
71 | 89 | | |
72 | 90 | | |
| |||
0 commit comments