react-use-scroll-position
react-use-scroll-position copied to clipboard
What about to add debounce instead of throttle?
Hi, nice hook :) You can see in navbar demo that if you spam scroll down \ scroll up - navbar shows and hide. With debounce(only when scroll direction changes) it will be waiting for your last scroll event.