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

[question] 开启虚拟列表的select在滚动条达到底部时,如果滚轮事件继续进行,会直接滚动外部滚动条 #1023

Open
Cacolet opened this issue Feb 2, 2024 · 3 comments

Comments

@Cacolet
Copy link

Cacolet commented Feb 2, 2024

开启虚拟列表的select在滚动条达到底部时,如果滚轮事件继续进行,会直接滚动外部滚动条,没有像rc-virtual-list的中lock50ms的等待,直到50ms内没有任何滚动事件进行,下次滚动发生才会滚动外部滚动条。

@Cacolet
Copy link
Author

Cacolet commented Feb 2, 2024

为什么会提出这个问题:
如果不限制内部滚动事件,那么在直接滚出select下拉框后,这时的滚轮事件会触发两个scroll事件(一个是select下拉框的,一个是外部滚动条的,任何行为都会触发这两个),就会导致我突然反向滚动的话,原本处于底部的滚动条会向上滚动,这时鼠标并没有在下拉框中也触发了这一行为,目前rc-select和antd4.x、5.x都会有这个问题

@yoyo837
Copy link
Member

yoyo837 commented Feb 2, 2024

可否带复现到antd提交一个issue?

@Cacolet
Copy link
Author

Cacolet commented Feb 2, 2024

ok

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