ppenn

OnMouseOver and OnClick do not work together for GraphicsLayer

Discussion created by ppenn on Mar 15, 2012
Latest reply on Mar 16, 2012 by tle-esristaff
If I have graphics in my map and attach the following:-

  dojo.connect(map.graphics, "onMouseOver", function(evt) {  console.log("onMouseOver"); });
  dojo.connect(map.graphics, "onClick", function(evt) {  console.log("onClick"); });

I am only getting onMouseOver. If I comment that event line out then I receive onClick events. But never both.

cheers,

Phil

ps this is not the same as http://forums.arcgis.com/threads/8832-OnMouse-Events-disable-OnClick-event-for-FeatureLayers because I'm not using FeatureLayers, just the map.graphics graphicslayer.
pps 2.7

Outcomes