apache / apache/echarts

[Bug] The zoom cursor in the toolbox area is incorrect

Open Beginner friendly
#21,723 0 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.1.0

### Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=line-smooth&code=vVI9T8MwEN37K27z0iFJGWgQQxekDhEDSJWoOhhybSwlvsp2Sgvqf8e-2k0BwVgPPt9H3nt3F9o6RRru4XME4IjaV9qX7ADYht5LcKbHMftrlK43mNIAtXTyhagbIr8_8ifaYwoYtI4Y56J6SFu5w5mdd3LzR0k0Rm0aV0KRBZdjg54lVyRV7rD1UEJpq2oUiWc_2ys71zX6hpfZ6kzvpPGwjBoO6rqEPDv7a9U6NBXVAVKTHgA_PPWjrqi3uGgQ2xLWsrVxDlH0_5IOV5UE0NEOY7ryz8u9sV5WwHNKK46636TDDZlDJAqD94pFRVqMQTz3XgGIBdbsNX0wD0YF8yQdm16LVdobt_2DYSdbj5IqLBqFvuT7XiPtrf8FYDop_JXl4XUzhryY-mA-mfBdDLOM8K26mJLtiFxz6v7UfOh9dLz7Ag&enc=deflate

### Steps to Reproduce

1. Click the zoom button in the toolbox area.
2. Left-clicking directly on the chart will cause the cursor icon to change to a gesture state.

### Current Behavior

Clicking the cursor will change it to a gesture state.

[Video](https://gcore.jsdelivr.net/gh/liuzi6612/public@gh-pages/temp/49c53932-bc98-4a48-9759-1150f84efc3c.mov)

### Expected Behavior

Normally, it should be in the zoom cursor state.

### Environment

```markdown
- OS: Mac 26.2 (25C56)
- Browser: Chrome 151.0.7922.76
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked minimal reproduction in the ECharts example editor and reproduce the zoom-button interaction in the stated Chrome environment. Inspect the toolbox zoom interaction and cursor state; the work is done when clicking the chart after enabling zoom keeps the cursor in the expected zoom state rather than changing to a gesture state.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.