antvis / antvis/G2

【5.1.9】使用滚轮滚动scrollbar时视图中数据不更新

Open
#5,837 1 comment 0 reactions 0 assignees View on GitHub
OSCP v5
Dominant language
TypeScript
Stars
12.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

预期滚动滚轮时视图中数据会像拖动scrollbar一样变化,但实际滚动滚轮时仅scrollbar的thumb位置改变,视图中的数据并没有更新。
p.s. 是否考虑scrollbar滚轮滚动区域可配置,比如支持在图表内滚动滚轮,目前仅支持在scrollbar区域滚动滚轮,交互起来感觉不太友好。

### 重现链接

https://g2.antv.antgroup.com/examples/component/scrollbar/#scrollbar

### 重现步骤

1. 进入页面
2. 在scrollbar区域滚动滚轮
3. 与拖动thumb的效果进行对比

### 预期行为

如问题描述

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]

### 屏幕截图或视频(可选)

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the scrollbar example at https://g2.antv.antgroup.com/examples/component/scrollbar/#scrollbar and reproduce the difference between wheel scrolling and dragging the thumb. Trace the scrollbar interaction entry point and compare how both actions update the view. Done means wheel scrolling updates the displayed data like thumb dragging; the issue also raises configurable wheel-scrolling areas as a separate consideration.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.