You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "AlwaysMing (via GitHub)" <gi...@apache.org> on 2023/05/15 08:36:47 UTC

[GitHub] [echarts] AlwaysMing opened a new issue, #18627: 移动端geo地图的点击事件无响应[Bug]

AlwaysMing opened a new issue, #18627:
URL: https://github.com/apache/echarts/issues/18627

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   null
   
   ### Steps to Reproduce
   
     const echartsRef = useRef(null);
     let chart;
     const echartsResize = () => {
       chart && chart.resize();
     };
   
     const initPage = () => {
       const geoJson = getGeoJson(data);
       echarts.registerMap('UNBMap', geoJson);
       chart = echarts.init(echartsRef.current, 'light', { devicePixelRatio: 2 });
       const finalOption = changeOptionFun(option);
       const options = get3dGisOption(finalOption, data, formatter, regionDataStyleFunc, is3D);
       if (appendSeriesFun) {
         options.series = options.series.concat(appendSeriesFun(data));
       }
       chart.on('click', (e) => {
         if (onClick) {
           onClick(e);
         }
       });
       chart.on('georoam', 'series', (e) => {
         if (onRoam) {
           onRoam(e, chart);
         }
       });
       chart.setOption(options);
     };
   
     useEffect(() => {
       initPage();
       window.addEventListener('resize', echartsResize, false);
   
       return () => {
         window.removeEventListener('resize', echartsResize);
         chart && chart.dispose();
         echartsResize();
       };
     }, [data, refreshTrigger]);
   
     return <div style={{ width: '100%', height: '100%' }} ref={echartsRef}></div>;
   
   ### Current Behavior
   
   同样的代码,在pc模拟器上点击事件正常相应,在移动端真机上运行点击事件无响应
   
   ### Expected Behavior
   
   移动端也响应点击事件
   
   ### Environment
   
   ```markdown
   - OS:安卓
   - Browser:
   - Framework:react@17.0.2
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #18627: [Bug] 移动端geo地图的点击事件无响应

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18627:
URL: https://github.com/apache/echarts/issues/18627#issuecomment-1547427011

   @AlwaysMing It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] Mobile geo map click events are unresponsive
   </details>


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] 移动端geo地图的点击事件无响应 [echarts]

Posted by "15380831711 (via GitHub)" <gi...@apache.org>.
15380831711 commented on issue #18627:
URL: https://github.com/apache/echarts/issues/18627#issuecomment-2042091263

   **dist/echarts.js**
   `// scope.touching = true;`


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] 移动端geo地图的点击事件无响应 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #18627: [Bug] 移动端geo地图的点击事件无响应
URL: https://github.com/apache/echarts/issues/18627


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [echarts] AlwaysMing commented on issue #18627: [Bug] 移动端geo地图的点击事件无响应

Posted by "AlwaysMing (via GitHub)" <gi...@apache.org>.
AlwaysMing commented on issue #18627:
URL: https://github.com/apache/echarts/issues/18627#issuecomment-1566804110

   https://github.com/apache/echarts/issues/9906
   这个方法可行!


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] 移动端geo地图的点击事件无响应 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18627:
URL: https://github.com/apache/echarts/issues/18627#issuecomment-4263483039

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Bug] 移动端geo地图的点击事件无响应 [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #18627:
URL: https://github.com/apache/echarts/issues/18627#issuecomment-4209766770

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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