Skip to content

[Bug] Panning on chart with zoom/scroll bars is jumpy #21265

@StijnWillemse-Ontoforce

Description

Version

6.0.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=scatter-nebula

Steps to Reproduce

Repro steps:

  • Open tis chart example: https://echarts.apache.org/examples/en/editor.html?c=scatter-nebula
  • Zoom in on this chart to around the following range:
    X-axis: [-35, 7]
    Y-axis: [-82, -130]
  • Using your cursor click and drag the chart horizontally such that the max displayed value on the x-axis changes from something below 7 to something above 7. (on the canvas! The issue cannot be reproduced when using the zoom/scroll bars)

Current Behavior

The Y-axis jumps to a different range than I originally was zoomed into. On this example chart it is not that much of a jump, but on sometimes the jump can be quite large and even jump outside of the possible Y-axis range! I also see this on custom charts.

Expected Behavior

The panning works the same as if I were to use the scroll bars

Environment

- OS: macOS 15.5
- Browser: Arc
- Framework: Your examples websites

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions