antvis / antvis/X6

Scrollbar插件无法触发画布事件blank:mousewheel

Open
#4,088 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

两个问题:

- 蓝色区域内无法触发 `blank:mousewheel` 事件
- 蓝色区域外无法实现画布的缩放

![2023-12-12_11-22-14](https://github.com/antvis/X6/assets/88022434/3b8e5580-34ce-4ad8-942d-0e4ba13257ef)

![20231212_111843](https://github.com/antvis/X6/assets/88022434/933b1b72-5b89-44d1-8641-dd7672ff17d7)

### 重现链接

[https://codesandbox.io/p/sandbox/quizzical-lumiere-dl84t6](https://codesandbox.io/p/sandbox/quizzical-lumiere-dl84t6)

### 重现步骤

使用Scroller插件

### 预期行为

滚动区域任何位置都能触发 `blank:mousewheel` 事件,都可以实现画布缩放。

### 平台

- 操作系统: Windows
- 网页浏览器: Google Chrome
- X6 版本: All

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

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction and the Scroller plugin behavior around blank:mousewheel. Verify the two reported cases on Windows Chrome: scrolling inside and outside the blue area should both trigger the event and allow canvas zooming. Done means the expected behavior works throughout the scrollable region without regressing the existing Scroller 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.