You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/07/27 03:24:42 UTC

[GitHub] [incubator-echarts] DoonPort0422 opened a new issue #13028: Zoom in Chrome Browser, mouse event running wrong in svg > foreignObject

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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] DoonPort0422 commented on issue #13028: Zoom in Chrome Browser, mouse event running wrong in svg > foreignObject

Posted by GitBox <gi...@apache.org>.
DoonPort0422 commented on issue #13028:
URL: https://github.com/apache/incubator-echarts/issues/13028#issuecomment-664802716


   FYI, the problem exists no matter echarts renders in 'svg' or not. 
   ```
   echarts.init(container, null, {renderer: 'svg', ...size})
   echarts.init(container)
   ```
   _I mean the above 2 cases both can repeat the problem._


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



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


[GitHub] [incubator-echarts] DoonPort0422 commented on issue #13028: Zoom in Chrome Browser, mouse event running wrong in svg > foreignObject

Posted by GitBox <gi...@apache.org>.
DoonPort0422 commented on issue #13028:
URL: https://github.com/apache/incubator-echarts/issues/13028#issuecomment-679456760


   FYI, this problem should be a chrome's bug. Besides the mouse's offset, the element size may be wrong too.
   https://bugs.chromium.org/p/chromium/issues/detail?id=738022
   https://bugs.chromium.org/p/chromium/issues/detail?id=976224


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



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


[GitHub] [incubator-echarts] DoonPort0422 commented on issue #13028: Zoom in Chrome Browser, mouse event running wrong in svg > foreignObject

Posted by GitBox <gi...@apache.org>.
DoonPort0422 commented on issue #13028:
URL: https://github.com/apache/incubator-echarts/issues/13028#issuecomment-729346506


   This problem is fixed in Chrome 87. 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.

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] [incubator-echarts] j5272000 commented on issue #13028: Zoom in Chrome Browser, mouse event running wrong in svg > foreignObject

Posted by GitBox <gi...@apache.org>.
j5272000 commented on issue #13028:
URL: https://github.com/apache/incubator-echarts/issues/13028#issuecomment-721065734


   We have the same problem


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



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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #13028: Zoom in Chrome Browser, mouse event running wrong in svg > foreignObject

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13028:
URL: https://github.com/apache/incubator-echarts/issues/13028#issuecomment-664098843


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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



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


[GitHub] [incubator-echarts] DoonPort0422 closed issue #13028: Zoom in Chrome Browser, mouse event running wrong in svg > foreignObject

Posted by GitBox <gi...@apache.org>.
DoonPort0422 closed issue #13028:
URL: https://github.com/apache/incubator-echarts/issues/13028


   


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



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


[GitHub] [incubator-echarts] MercusChan commented on issue #13028: Zoom in Chrome Browser, mouse event running wrong in svg > foreignObject

Posted by GitBox <gi...@apache.org>.
MercusChan commented on issue #13028:
URL: https://github.com/apache/incubator-echarts/issues/13028#issuecomment-675287327


   I got similar issue when browse with a 4K (hidpi) monitor.


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



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