leaflet-freehandshapes
leaflet-freehandshapes copied to clipboard
Bug: onRemove should turn-off all events but actually 'mouseleave' not turned-off
I use leaflet-freehandshapes version: 0.3.7 leaflet version: 1.6.0
I'm also have fix for that bug: replace this line: L.DomEvent[onoff](document.body, "mouseleave", this.mouseUpLeave.bind(this))
to this: L.DomEvent[onoff](document.body, "mouseleave", this.mouseUpLeave, this);
when I pull with npm: npm i leaflet-freehandshapes - I get this bug. If I pull it from github- It's already fixed. It's the same version in package.json: 0.3.7- how it can be posssible?