DoonPort0422 opened a new issue #13028: URL: https://github.com/apache/incubator-echarts/issues/13028
### Version 4.8.0 ### Steps to reproduce https://codepen.io/doonport0422/pen/vYLMabM Open the above sample in Chrome, zoom your browser (e.g. 80%) There are 2 charts: - 1st chart runs in root element. - 2nd chart runs under a svg > g > foreignObject element. On the 2nd chart: - Try to click on their bars, you will find that the mouse event will return unexpected offset X/Y. - Or, just mouse over on the bar, you may find that bar may not be highlighted PS: 1st chart has no problem. ### What is expected? 2nd chart's mouse events should be same as 1st chart ### What is actually happening? 2nd chart's mouse events is wrongly adjusted due to browser's zoom ratio. <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE --> <!-- This issue is in English. 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
