获取应用程序中的漏洞更新
URL 已复制
共享 URL
漏洞
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 支持应用程序
发现关于本主题的更多内容
Esri Community
搜索相关信息
Training
查找与此主题相关的培训
ArcGIS Ideas
探索想法并提供反馈
获取来自 ArcGIS 专家的帮助
联系技术支持部门
下载 Esri 支持应用程序
转至下载选项