X6
X6 copied to clipboard
2.15.3 及以上版本 mousewheel 事件无法触发
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
No response
👋 @nfym
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
一个多月了还没动静。2.15.3 版本不可以,我回退了
2.15.2 也不行,black:mousewheel
也经常无法触发,不知道是不是因为使用了 Scroller 插件的原因
我的是因为开启了这玩意不触发
mousewheel: {
enabled: true
}