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

Debounce scroll event #2

Open
emilv opened this issue Apr 10, 2017 · 1 comment
Open

Debounce scroll event #2

emilv opened this issue Apr 10, 2017 · 1 comment

Comments

@emilv
Copy link

emilv commented Apr 10, 2017

For example: https://lodash.com/docs/4.17.4#throttle

Probably with leading and trailing both set to true.

@kiernan
Copy link

kiernan commented Apr 19, 2017

I've also found debouncing the scroll event listener to around 50ms makes it feel much smoother in Firefox at least.
Chrome on OSX for me seems to be happy either way, although I think it looks better visually without the debouncing since it handles it ok without it for me.

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