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

锚点向上滚动时,偶尔会到顶部 #477

Closed
kenttanl opened this issue Oct 24, 2017 · 7 comments
Closed

锚点向上滚动时,偶尔会到顶部 #477

kenttanl opened this issue Oct 24, 2017 · 7 comments

Comments

@kenttanl
Copy link

HI,下图中,黑色的是顶部栏,下面是文档的内容,大多数的时候,锚点都是在顶部栏下方,但是偶尔向上滚动时,会直接出现在顶部,即“top: 0px;”的样式没有被取消,不知是否有解决的方法?谢谢您们

zorro

@vthinkxie
Copy link
Member

@cipchk

@cipchk
Copy link
Member

cipchk commented Oct 26, 2017

@kenttanl 能否利用 plnkr 提供一下你的实际使用条件,以便我更好的复现呢?非常感谢。

@cipchk
Copy link
Member

cipchk commented Oct 26, 2017

@vthinkxie please assignee for me, thx.

@hsuanxyz
Copy link
Member

@cipchk

I'm submitting a...


[X] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Support request => Please do not submit support request here

Current behavior

在使用 nz-affix 的情况下,在出现浮动后,使用滚轮快速滚到页面顶部,浮动依然存在。
anchor

Expected behavior

Minimal reproduction of the problem with instructions

https://ng.ant.design/#/other/anchor

What is the motivation / use case for changing the behavior?

Environment


Angular version: X.Y.Z

ng-zorro-antd version: 0.5.5

Browser:
- [ ] Chrome (desktop) Version 63.0.3239.18 (Official Build) dev (64-bit)
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

@cipchk
Copy link
Member

cipchk commented Oct 27, 2017

@hsuanxyz i got it, thx.

@kenttanl
Copy link
Author

kenttanl commented Nov 1, 2017

@cipchk 没错,就是像@hsuanxyz所描述的那样。

非常抱歉,现在才回复

@lock
Copy link

lock bot commented Feb 18, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 18, 2019
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants