apache / apache/echarts

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

Open
#21,265 4 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

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

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

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.