[Bug]: 开启scroll-canvas滚动画布后,光标在React自定义节点上无法触发滚动
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug / 问题描述
https://g6.antv.antgroup.com/examples/element/custom-node/#react-node
使用官方的案例,把zoom-canvas去掉,增加scroll- canvas,在节点上滚动,无法触发画布滚动
### Reproduction link / 复现链接
https://g6.antv.antgroup.com/examples/element/custom-node/#react-node
### Steps to Reproduce the Bug or Issue / 重现步骤
_No response_
### Version / 版本
🆕 5.x
### OS / 操作系统
- [x] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他
### Browser / 浏览器
- [x] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the React custom-node example at https://g6.antv.antgroup.com/examples/element/custom-node/#react-node and reproduce the issue after replacing zoom-canvas with scroll-canvas. Trace how pointer or wheel events behave over the React custom node; done means scrolling over the node scrolls the canvas as it does elsewhere, with a regression test if the example's test setup supports one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100