Skip to content

Fix category scale Zoom/Pan proportion problems #151

@subogero

Description

@subogero

Plus panning on indexScale when zoomed in also causes zoom.

Zoom: the zoom parameter is a proportion. On linearScale it does work like that, but on the indexScale it's adding/removing 1 label at a time. Totally broken with large datasets. Make it work like linearScale.

Pan: calculate dIndex first, limit if 0 .. lastLabelIndex range would be exceeded, then modify minIndex, maxIndex with the exact same dIndex.

Pan on indexScale currently unusable with large datasets. Make pan distance proportional to mouse/touch gesture size.

Probably fixes some other related issues.

Pull request coming immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions