window-scroll-position
window-scroll-position copied to clipboard
TypeError: handlerScroll.cancel is not a function
trafficstars
The PR #5 introduced a handleScroll.cancel() but there is no property cancel on the handler function. So, on component unmount, an error is thrown and thus the removeEventListener is never called.