AnsweredAssumed Answered

dbl-click event for feature layer not firing

Question asked by sarahclark on Jan 23, 2015
Latest reply on Mar 3, 2015 by nico32

I am trying to zoom the map on a double-click even if I am double clicking a feature layer...but the map won't zoom. When I try to listen for 'dbl-click' on the feature layer, it doesn't even print to the console:

 

featureLayer.on("dbl-click", function(evt) {
     console.log("dbl-click");
});


  console.log('hi');


});

 

Can anyone replicate this? I have a label layer and if I double click over the text it zooms the map and seems the event is fired for the label layer...as soon as I double click on the graphic of a feature layer, no response.

Outcomes