leaflet-freehandshapes icon indicating copy to clipboard operation
leaflet-freehandshapes copied to clipboard

Bug: onRemove should turn-off all events but actually 'mouseleave' not turned-off

Open segalmc opened this issue 3 years ago • 1 comments

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?

segalmc avatar Jan 09 '22 08:01 segalmc