marcincichocki / vue-image-compare

Compare 2 images using slider with vue.js
https://marcincichocki.github.io/vue-image-compare/
MIT License
33 stars 20 forks source link

mouse events to excessiv registered/unregistered (bug) #4

Open vollyimnetz opened 5 years ago

vollyimnetz commented 5 years ago

I stumbled about a bug where some of my JS-driven links do not work anymore. After a hour of search i found that your script caused the error.

I assume the problem is caused by the following code (but did not test enough).

window.removeEventListener('mouseup',` this.onMouseUp);
window.removeEventListener('resize', this.onResize);

Finally I have removed the script again and instead used the following codepen on my page: https://codepen.io/bamf/pen/jEpxOX