Skip to content

Center zooming around axis origin when nsPerPx gets limited to minNsPerPx #175

@dominikh

Description

@dominikh

When zooming to very small spans (e.g. 1ns ones), the nsPerPx necessary to display only the span would be too small and it gets limited to 0.005 instead. This causes the span to be displayed on the far left of the window, with other spans being visible next to it. It should be centered around the axis origin instead, as that's where the user's focus lies. Or maybe it should always be centered around the window's center instead? After all, that's where span labels are located when zooming to spans that aren't tiny.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions