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 2021/06/08 08:39:34 UTC
[GitHub] [echarts] sheepzheng opened a new issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip
sheepzheng opened a new issue #15103:
URL: https://github.com/apache/echarts/issues/15103
### Version
5.1.1
### Steps to reproduce
in script use document.body.style.zoom to adapt different size of screen. in echarts option add tooltip. use ctrl in browser to zoom your demo or use different size of screen to display your demo
### What is expected?
use document.body.style.zoom and zoom browser will not effect mouse hover position in tooltip
### What is actually happening?
you will find mouse hover event will trigger wrong part of this chart's tooltip.
<!-- 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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
[GitHub] [echarts] plainheart edited a comment on issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip
Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #15103:
URL: https://github.com/apache/echarts/issues/15103#issuecomment-856749306
Thanks for the report. Related to #14253, #13614, #13606, #12645, #11032, #9310, #8386, #8382, #8286, #6674, #6083, #3635, #3511 etc.
I drafted a solution for this issue before, but it may need some discussion. List it in the [5.x](https://github.com/apache/echarts/milestone/10) milestone.
--
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] [echarts] yushouqing commented on issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip
Posted by GitBox <gi...@apache.org>.
yushouqing commented on issue #15103:
URL: https://github.com/apache/echarts/issues/15103#issuecomment-904347599
i have the same issue. browser zoom changed will cause mouse position fault.
--
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] plainheart commented on issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip
Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #15103:
URL: https://github.com/apache/echarts/issues/15103#issuecomment-856749306
Thanks for the report. Related to #14253, #13614, #13606, #12645, #11032, #9310, #8386, #8382, #8286, #6674, #6083, #3635, #3511 etc.
I drafted a solution for this issue before, but it may need some discussions yet. List it in the [5.x](https://github.com/apache/echarts/milestone/10) milestone.
--
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] [echarts] plainheart edited a comment on issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip
Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #15103:
URL: https://github.com/apache/echarts/issues/15103#issuecomment-856749306
Thanks for the report. Related to #14253, #13615, #13614, #13606, #12645, #11032, #9310, #8386, #8382, #8286, #6674, #6083, #3635, #3511 etc.
I drafted a solution for this issue before, but it may need some discussion. List it in the [5.x](https://github.com/apache/echarts/milestone/10) milestone.
--
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] sheepzheng commented on issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip
Posted by GitBox <gi...@apache.org>.
sheepzheng commented on issue #15103:
URL: https://github.com/apache/echarts/issues/15103#issuecomment-859461384
I fixed this problem by setting body transform.
In script add:
```var ratioX = window.innerWidth / 1920;//dev screensize echarts instance
document.body.style.width = '1920px';//dev screensize echarts instance
document.body.style.height = '1080px';//dev screensize echarts instance
document.body.style.transform = `scale(${ratioX},${ratioX})`;
document.body.style.transformOrigin = `0 0`;
```
then tooltip works right with browser zoom and different sizes of screen
--
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] [echarts] echarts-bot[bot] commented on issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip
Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15103:
URL: https://github.com/apache/echarts/issues/15103#issuecomment-856578044
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 it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
*A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
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 question.
If you are interested in the project, you may also subscribe our [mailing 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] [echarts] sheepzheng edited a comment on issue #15103: browser zoom and dom zoom will cause mouse position fault in tooltip
Posted by GitBox <gi...@apache.org>.
sheepzheng edited a comment on issue #15103:
URL: https://github.com/apache/echarts/issues/15103#issuecomment-859461384
I fixed this problem by setting body transform.
In script add:
```
var ratioX = window.innerWidth / 1920;//dev screensize echarts instance
document.body.style.width = '1920px';//dev screensize echarts instance
document.body.style.height = '1080px';//dev screensize echarts instance
document.body.style.transform = `scale(${ratioX},${ratioX})`;
document.body.style.transformOrigin = `0 0`;
```
then tooltip works right with browser zoom and different sizes of screen
--
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