Skip to content

Don't redraw plot when scrolling #171

@dominikh

Description

@dominikh

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions