apache / apache/echarts

[Bug] restore zoom button works inconsistently

Open
#19,118 2 comments 1 reaction 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

5.4

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=area-simple

### Steps to Reproduce

1. use dataslider to zoom in
2. use click and hold Zoom
3. use dataslider to zoom in
4. use click and hold Zoom
5. use dataslider to zoom in
6. click on restore zoom
7. click on restore zoom
8. click on restore zoom
9. click on restore zoom

### Current Behavior

after first click on restore zoom it restore to step 4
after second click on restore zoom it restore to step 2
after third click on restore zoom it does nothing

### Expected Behavior

after first click on restore zoom it restore to step 5
after next click on restore zoom it restore to step 4
after next click on restore zoom it restore to step 3
after next click on restore zoom it restore to step 2
after next click on restore zoom it restore to step 1
after next click on restore zoom it restore to original range

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### 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.