Skip to content

Commit

Permalink
Keep sending 'snap' after snaping on line
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Nov 26, 2018
1 parent b557c7f commit d689382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leaflet.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ L.Handler.MarkerSnap = L.Handler.extend({
if (marker.snap != layer) {
marker.snap = layer;
if (marker._icon) L.DomUtil.addClass(marker._icon, 'marker-snapped');
marker.fire('snap', {layer:layer, latlng: latlng});
}
marker.fire('snap', {layer:layer, latlng: latlng});
}
else {
if (marker.snap) {
Expand Down

0 comments on commit d689382

Please sign in to comment.