antvis / antvis/G6

[Bug]:modes中添加‘’zoom-canvas‘,影响自定义节点内容滚动

Open
#7,668 2 comments 0 reactions 0 assignees View on GitHub
waiting for maintainer
Dominant language
TypeScript
Stars
12.3k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug / 问题描述

G6中modes中添加‘’zoom-canvas‘,如果自定义节点添加自定义behavior中使用了wheel,想要自定义节点的文本可滚动查看。但是就会一个问题,滚动自定义节点的内容的时候,画布也会自动缩放。怎么处理才能使在滚动节点内容的时候,画布不会自动缩放。

### Reproduction link / 复现链接

_No response_

### Steps to Reproduce the Bug or Issue / 重现步骤

_No response_

### Version / 版本

Please select / 请选择

### OS / 操作系统

- [ ] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他

### Browser / 浏览器

- [ ] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the modes configuration for `zoom-canvas` and the custom behavior that handles `wheel` events, then reproduce the interaction with a custom node containing scrollable text. Done means scrolling node content no longer zooms the canvas, while canvas zooming still works as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.