laptop and a wrench

Bug

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 ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found3.12
StatusWill Not Be Addressed

Additional Information

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

Workaround

This workaround is shown at :http://jsbin.com/yewaji/1/edit 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

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options