ilyashubin / scrollbooster

Enjoyable content drag-to-scroll library
https://ilyashubin.github.io/scrollbooster
MIT License
993 stars 80 forks source link

destroy() is incomplete. #44

Open ghost opened 4 years ago

ghost commented 4 years ago

Thanks for this great plugin. First of all, thank you.

I found an event that I couldn't delete with destroy(). The following events cannot be deleted because there was a problem while attaching and removing the scroollBooster.

this.props.content.addEventListener("load",this.events.contentLoad,!0)
this.props.content.removeEventListener("load",this.events.contentLoad)

The cause is that the arguments don't match.

this.props.content.removeEventListener("load",this.events.contentLoad,!0)

Translated with www.DeepL.com/Translator (free version)