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 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项