Skip to content

Panning limits #526

Open
Open
@marcoshernanz

Description

@marcoshernanz

Right now there doesn't seem to be a way to set some panning limits, so the users can pan out of the chart.

I'm aware there's workarounds for this, such as checking if the chart is out bounds and resetting the panning, as in this example:
https://github.com/FormidableLabs/victory-native-xl/blob/main/example/app/pan-zoom.tsx

However, I think it's a much better exeriece setting a 'hard' limit to the panning gesture.

Record_2025-03-23-09-30-31.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions