Skip to content

Conversation

@annafractuous
Copy link

using a console.log statement in the SmoothScroll render() function that outputs the timestamp (hh:mm:ss) and the current value of scrollingSpeed to illustrate the difference in how often the function runs:

before (runs 60x per second, even before the user has started scrolling):
before

after (runs only while the user is scrolling; stops when they stop scrolling and starts again when they scroll again):
after

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

Successfully merging this pull request may close these issues.

1 participant