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

当页面发生滚动后,dnd中的节点拖拽到画布中会延迟一会儿才显示 #4461

Open
wuweinero opened this issue Oct 7, 2024 · 2 comments

Comments

@wuweinero
Copy link

问题描述

当页面发生滚动后(不是画布滚动,是整个网页页面上下滚动),dnd中的节点立即拖拽到画布中会延迟一会儿才显示。
补充1:如果滚动之后,过两三秒再拖拽节点,则没有延迟。
补充2:如果滚动后,立即拖拽到页面中,然后迅速手动再滚动一次页面,则会立即渲染该节点。

重现链接

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

重现步骤

1.进入上述官方示例网页
2.用鼠标滑轮滚动页面后,迅速拖拽一个节点到画布中,就可以看到延迟的现象
3.滚动后静置2-3s,再拖拽节点到画布中,则没有延迟
注意,每次滚动后,只有首次拖拽会出现这个现象。

预期行为

我期望页面滚动后,立即拖拽节点到画布中时,不要延迟长达2s左右,而是控制在1s以内

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 7, 2024

👋 @wuweinero

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.

@zlecheng
Copy link

楼主解决了吗

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

2 participants