laptop and a wrench


When double-clicking on a feature layer that has a callback function, the double-click event does not fire and the single-click event fires twice.

Last Published: June 17, 2015 ArcGIS API for JavaScript
Bug ID Number BUG-000084944
SubmittedJanuary 31, 2015
Last ModifiedDecember 1, 2020
Applies toArcGIS API for JavaScript
Version found3.12
StatusWill Not Be Addressed

Additional Information

Map events resolves the problem. Refer to "" , note: selectGrid function of the bin: if (!e.graphic) { return; }


This workaround is shown at : Add a brief click timeout (e.g. 100 ms) to the single-click event handler. Clear the timeout in the double-click event handler. fl.on("click", function(evt){ console.log('single click'); window.clickTimeout = setTimeout(function(){ selectGrid(evt); }, 100); }); fl.on("dbl-click", function(evt){ console.log('----single click cancelled'); clearTimeout(window.clickTimeout); console.log('double click'); selectGrid(evt); });

Steps to Reproduce

Bug ID: BUG-000084944


  • ArcGIS API for JavaScript

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic