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

The container of affix is ​​scrolled, and there is a bug when it can be scrolled outside the container. After the inner scroll, when the outer scroll is scrolled, the element of affix will roll out of the inner container, and the official website component dome can be reproduced #5444

Open
1 task
wekerSnail opened this issue Apr 7, 2022 · 2 comments
Labels

Comments

@wekerSnail
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.1.0

Environment

win11,edge 100.0.1185.29

Reproduction link

https://www.antdv.com/components/affix-cn
image

Steps to reproduce

affix的容器滚动,在容器外部也可滚动时存在bug,内部滚动之后外部滚动时,affix的元素会滚出内部容器

What is expected?

容器固定应该固定的元素在滚动容器内部实现相对定位,不应该滚出内部容器

What is actually happening?

单纯的滚动内部容器时表现正常,但是如果滚动内部容器之后,在滚动外部的容器,affix的元素任然会随着外部滚动做相对的移动,从而滚出了内部容器

@github-actions github-actions bot changed the title affix的容器滚动,在容器外部也可滚动时存在bug,内部滚动之后外部滚动时,affix的元素会滚出内部容器,官网组件dome即可复现 The container of affix is ​​scrolled, and there is a bug when it can be scrolled outside the container. After the inner scroll, when the outer scroll is scrolled, the element of affix will roll out of the inner container, and the official website component dome can be reproduced Apr 7, 2022
@YuShengHou
Copy link

win10,edge 100.0.1185.29 (正式版本) 没有这个问题
image

@tangjinzhou
Copy link
Member

老问题了,可以参考这里:ant-design/ant-design#16120

@tangjinzhou tangjinzhou added the bug label Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants