apache / apache/echarts

[Bug] [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive.

Open
#18,255 39 comments 36 reactions 0 assignees View on GitHub
discussion-required en not-a-bug topic: event
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.4.1

### Link to Minimal Reproduction

_No response_

### Steps to Reproduce

```javascript
import * as echarts from "echarts";

echarts.init(container);
```

### Current Behavior

[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

![image](https://user-images.githubusercontent.com/3228637/217874086-25ac1a42-b7ad-4a8c-b4de-fc765ac30470.png)

### Expected Behavior

This violation warning should not display.

### Environment

```markdown
- OS: Windows 11
- Browser: 110.0.5481.77
- Framework: Vue 3
```

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