window-scroll-position icon indicating copy to clipboard operation
window-scroll-position copied to clipboard

TypeError: handlerScroll.cancel is not a function

Open johnnathan1996 opened this issue 5 years ago • 0 comments
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.

johnnathan1996 avatar Mar 02 '20 09:03 johnnathan1996