antvis / antvis/X6

滚动画布插件Scroller在开启网格gird的状态下,会导致网格错位,不使用scroller则正常

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

Description

### Describe the bug

滚动画布插件Scroller在开启网格gird的状态下,会导致网格错位,不使用scroller则正常
![image](https://github.com/antvis/X6/assets/17397507/e877f3f2-6ba6-4135-84a3-5692cc6c3628)

### Your Example Website or App

https://x6.antv.antgroup.com/tutorial/plugins/scroller

### Steps to Reproduce the Bug or Issue

1. 开启graph.grid
2. 使用scroller插件
3. 放上任意矩形,缩放滚动画布

### Expected behavior

希望正常对齐

### Screenshots or Videos

_No response_

### Platform

- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 2.11.1]

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Open the Scroller plugin example at https://x6.antv.antgroup.com/tutorial/plugins/scroller and reproduce the issue by enabling graph.grid, adding a rectangle, and zooming or scrolling the canvas. Done means the grid remains correctly aligned with the rectangle while Scroller is enabled.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.