2.15.3 及以上版本 mousewheel 事件无法触发
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
codesandbox 上在线尝试 2.15.2 还可以触发 mousewheel 事件,切换 2.15.3 及以上版本后无法触发
```
graph.on('cell:mousewheel', (args) => {
console.log('cell:mousewheel', args)
})
```
### Your Example Website or App
https://codesandbox.io/embed/mystifying-forest-sncrfl?fontsize=14&hidenavigation=1&theme=dark
### Steps to Reproduce the Bug or Issue
切换2.15.3及以上版本,添加监听事件
```
graph.on('cell:mousewheel', (args) => {
console.log('cell:mousewheel', args)
})
```
### Expected behavior
2.15.3 及以上版本 mousewheel 无法触发
### Screenshots or Videos
_No response_
### Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 2.15.3]
### Additional context
包括鼠标滚轮事件:cell:mousewheel 、 node:mousewheel 、edge:mousewheel 、blank:mousewheel。
Contributor guide
Research direction
Start with the graph.on mousewheel event entry points and compare the event behavior between versions 2.15.2 and 2.15.3 using the linked CodeSandbox. Check the four reported event variants: cell:mousewheel, node:mousewheel, edge:mousewheel, and blank:mousewheel. Done means these events trigger again in 2.15.3 and later, with a regression test covering the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100