8000 Don't redraw plot when scrolling · Issue #171 · dominikh/gotraceui · GitHub
[go: up one dir, main page]

Skip to content

Don't redraw plot when scrolling #171

Open

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0