taion / scroll-behavior

Pluggable browser scroll management
MIT License
548 stars 58 forks source link

Unlisten PageLifecycle events on stop #472

Open catamphetamine opened 1 year ago

catamphetamine commented 1 year ago

The current code does PageLifecycle.addEventListener('statechange', ...) but doesn't remove that listener in the stop() method. I assume that's not intentional?