laptop and a wrench

Error

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.

Última publicación: June 17, 2015 ArcGIS API for JavaScript
Número de ID del error BUG-000084944
EnviadoJanuary 31, 2015
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for JavaScript
Versión encontrada3.12
EstadoWill Not Be Addressed

Información adicional

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

Solución alternativa

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); });

Pasos para reproducir

ID del error: BUG-000084944

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga