From f6979ff96b091c7ada4e427b7fe1f3bf229f07a9 Mon Sep 17 00:00:00 2001 From: jacobtoye Date: Fri, 20 Jul 2012 14:09:05 +1200 Subject: [PATCH] Added missing mouse events to FeatureGroup. --- src/layer/FeatureGroup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layer/FeatureGroup.js b/src/layer/FeatureGroup.js index 5aa41b5924b..22f804aeafb 100644 --- a/src/layer/FeatureGroup.js +++ b/src/layer/FeatureGroup.js @@ -10,7 +10,7 @@ L.FeatureGroup = L.LayerGroup.extend({ return this; } - layer.on('click dblclick mouseover mouseout', this._propagateEvent, this); + layer.on('click dblclick mouseover mouseout mousemove contextmenu', this._propagateEvent, this); L.LayerGroup.prototype.addLayer.call(this, layer); @@ -22,7 +22,7 @@ L.FeatureGroup = L.LayerGroup.extend({ }, removeLayer: function (layer) { - layer.off('click dblclick mouseover mouseout', this._propagateEvent, this); + layer.off('click dblclick mouseover mouseout mousemove contextmenu', this._propagateEvent, this); L.LayerGroup.prototype.removeLayer.call(this, layer);