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.

最後に公開された状態: June 17, 2015 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000084944
送信されましたJanuary 31, 2015
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン3.12
ステータスWill Not Be Addressed

参考情報

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

対処法

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

再現の手順

不具合 ID: BUG-000084944

ソフトウェア:

  • ArcGIS API for JavaScript

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動