mikolalysenko / mouse-change

Mouse state change listener
https://mikolalysenko.github.io/mouse-change
MIT License
15 stars 1 forks source link

detachListeners not called #2

Closed caesarsol closed 7 years ago

caesarsol commented 7 years ago

Is there something I'm missing, or is it right that the detachListeners function is not actually called on enable = false?

See https://github.com/mikolalysenko/mouse-change/blob/master/mouse-listen.js#L182

mikolalysenko commented 7 years ago

That's a bug

mikolalysenko commented 7 years ago

Thanks! Fixed in https://github.com/mikolalysenko/mouse-change/commit/78fed9cabb647ba76247c3bf2295abac72c8a978