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

position: sticky 时可视区域检测不准确 #51

Open
ding-js opened this issue Feb 28, 2020 · 0 comments
Open

position: sticky 时可视区域检测不准确 #51

ding-js opened this issue Feb 28, 2020 · 0 comments

Comments

@ding-js
Copy link

ding-js commented Feb 28, 2020

如果把元素粘贴在底部

position: sticky;
bottom: 0;

在未拖动到底部时的效果和 fixed 类似,但是库是按照正常文档流来处理的,导致在向下滚动的时候 Popup 一直不可见

Codepen 重现 Demo

sticky

if (isAncestorFixed(element)) {

@ding-js ding-js changed the title position: sticky 可视区域检测不准确 position: sticky 时可视区域检测不准确 Mar 2, 2020
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