Plot caches its draw calls and only repaints when the canvas has changed, as do many other parts of Gotraceui. However, using Canvas.unchanged invalidates the cache way too frequently, for example whenever the y position changes, i.e. when we scroll. We're only interested in changes to the canvas start and end, as well as the UI scale factor.
Plotcaches its draw calls and only repaints when the canvas has changed, as do many other parts of Gotraceui. However, usingCanvas.unchangedinvalidates the cache way too frequently, for example whenever theyposition changes, i.e. when we scroll. We're only interested in changes to the canvas start and end, as well as the UI scale factor.