diff --git a/inst/htmlwidgets/leaflet.js b/inst/htmlwidgets/leaflet.js index 846125d95..be3a05736 100644 --- a/inst/htmlwidgets/leaflet.js +++ b/inst/htmlwidgets/leaflet.js @@ -1325,6 +1325,7 @@ function addMarkers(map, df, group, clusterOptions, clusterId, markerFunc) { marker.on("click", mouseHandler(this.id, thisId, thisGroup, "marker_click", extraInfo), this); marker.on("mouseover", mouseHandler(this.id, thisId, thisGroup, "marker_mouseover", extraInfo), this); marker.on("mouseout", mouseHandler(this.id, thisId, thisGroup, "marker_mouseout", extraInfo), this); + marker.on("dragend", mouseHandler(this.id, thisId, thisGroup, "marker_dragend", extraInfo), this); }).call(_this3); } }; diff --git a/javascript/src/methods.js b/javascript/src/methods.js index 8097405f5..8238bb3c3 100644 --- a/javascript/src/methods.js +++ b/javascript/src/methods.js @@ -177,6 +177,7 @@ function addMarkers(map, df, group, clusterOptions, clusterId, markerFunc) { marker.on("click", mouseHandler(this.id, thisId, thisGroup, "marker_click", extraInfo), this); marker.on("mouseover", mouseHandler(this.id, thisId, thisGroup, "marker_mouseover", extraInfo), this); marker.on("mouseout", mouseHandler(this.id, thisId, thisGroup, "marker_mouseout", extraInfo), this); + marker.on("dragend", mouseHandler(this.id, thisId, thisGroup, "marker_dragend", extraInfo), this); }).call(this); } }