Multiple Click Events using Chrome and Firefox

7181
10
Jump to solution
08-22-2013 11:44 AM
JeffMitzelfelt
New Contributor III
I'm having a bit of an issue with multiple click events returning on a single mouse click and single click events returning after a pan or double click in Chrome and Firefox.

I have a jsFiddle set up that shows this. I am logging the click events to the console so you will need to open developer tools to see the clicks.

Here is the javascript I am using:
var map; var clickCount = 0; require([     "esri/map",     "dojo/domReady!"],  function (Map) {     map = new Map("divMap", {         basemap: "topo",         center: [-89.5, 40],         zoom: 6     });     map.on("click", function(evt){         console.log("Clicked" + (++clickCount));     }); });


I'm using the 3.6 API.

Any suggestions for a fix?

Thanks,
0 Kudos
10 Replies
AlanHammersmith
New Contributor III

This appears to have been fixed in v3.10.  It still happens in 3.9 (the version I'm using for supporting an older app, of course), but not after that.

0 Kudos