Skip to content

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
@wekerSnail

Description

@wekerSnail
  • 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的元素任然会随着外部滚动做相对的移动,从而滚出了内部容器

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions