Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

画布鼠标滚轮滚动卡顿问题 #4447

Open
0ready opened this issue Sep 19, 2024 · 2 comments
Open

画布鼠标滚轮滚动卡顿问题 #4447

0ready opened this issue Sep 19, 2024 · 2 comments

Comments

@0ready
Copy link

0ready commented Sep 19, 2024

问题描述

1.当画布可滚动时,通过滚轮进行滚动,会导致后续连接桩设置边卡顿
2. 该现象只在2.x版本复现,1.x版本使用demo可正常连线
3. 该现象只会在鼠标滚轮滚动/触摸板进行滚动的时候出现,通过滚动条拖动不会有对应现象
4. 滚动后进行连接,会有1.7秒左右无法连接

重现链接

https://stackblitz.com/edit/react-lxvm5g-ngmnqn

重现步骤

  1. 生成任意一节点在滚动画布上
  2. 鼠标滚轮进行滚动
  3. 滚动完成,通过连接桩生成边,生成的边在1.7秒内无法跟随鼠标

预期行为

同1.x一致/通过滚动条滚动一致,当滚动完成后,应该能够立马拖拽连接桩进行连线,现在版本卡顿

平台

  • macOS, Windows, Linux
  • Browser: Chrome
  • Version: @antv/x6 2.18.1;

屏幕截图或视频(可选)

antv-bug

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 19, 2024

👋 @0ready

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@0ready 0ready changed the title 画布鼠标滚轮滚动问题 画布鼠标滚轮滚动卡顿问题 Sep 19, 2024
@0ready
Copy link
Author

0ready commented Sep 23, 2024

只要触发鼠标滚轮操作,就会延时操作,不管是否有滚动条

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant