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

[ngx-scroll-to] at desired position is lagging #96

Open
y42DangHH opened this issue Aug 1, 2018 · 1 comment
Open

[ngx-scroll-to] at desired position is lagging #96

y42DangHH opened this issue Aug 1, 2018 · 1 comment

Comments

@y42DangHH
Copy link

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request

First of all, thank you so much for spending time creating this project! It is amazing so far.

Current behavior

Example: I click on a button with [ngx-scroll-to]="'#main-content'". It works perfectly and leads me to the div with the id="main-content". If I click on the same button again, it will scroll up for 2px and then scroll down again for 2px which is really annoying.

Expected behavior

Stay at the same position if I'm already at the desired div and not move up and down.

I hope you can help me with it!
Warm wishes

@code-trekker
Copy link

I assume that by lagging you meant the screen stutters for a bit? I solved a similar issue using this library instead: https://github.com/MarcinMichalik/ng-scrollTo

Sorry if its a bit late, just started using this

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