shakee93 / vue-toasted

🖖 Responsive Touch Compatible Toast plugin for VueJS 2+
https://shakee93.github.io/vue-toasted/
MIT License
2.21k stars 194 forks source link

Event Listeners are never removed #189

Open denisthe opened 3 years ago

denisthe commented 3 years ago

While debugging a memory leak on a project, I noticed that when a toast appear, it add a pointercancel, pointermove and a pointerup event listener. Those event listener are never removed and each time a new toast appear, there's 3 new event listeners for the toast.

Reproducing steps: https://shakee93.github.io/vue-toasted/#!

click a bunch of times on launch toast and you should see a bunch of new event listeners

image