You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/07/01 07:15:36 UTC

[GitHub] [incubator-echarts] zhaoxiaoran opened a new issue #10781: map3D双击事件无效

zhaoxiaoran opened a new issue #10781: map3D双击事件无效
URL: https://github.com/apache/incubator-echarts/issues/10781
 
 
   ### Version
   4.1.0-release
   
   ### Steps to reproduce
   echarts配置了click和dblclick事件,其中click事件做了200ms延迟。双击地图,dblclick事件不响应。
   
   ### What is expected?
   响应双击事件
   
   ### What is actually happening?
   对双击事件未响应
   
   ---
   myEcharts.on('click', function(params) {
               clearTimeout(_this.clickTimer);
               console.log('params', params);
               _this.clickTimer = setTimeout(function() {
                   if (params.data&&params.data.code) {
                       _this._render(myEcharts, params.data.code);
                       _this.mapStack.push(params.data.pCode);
                   }
               }, 250);            
           });
   
           myEcharts.on('dblclick', function(params) {
               clearTimeout(_this.clickTimer);
               var mapStack = _this.mapStack;
               console.log('stack', mapStack);
               if (mapStack.length) {
                   _this._render(myEcharts, mapStack.pop());
               } 
           });
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org