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.

Zuletzt veröffentlicht: June 17, 2015 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000084944
EingereichtJanuary 31, 2015
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version3.12
StatusWill Not Be Addressed

Zusätzliche Informationen

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

Schritte zur Reproduzierung

Bug-ID: BUG-000084944

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln