Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip position throttle makes tooltip feel laggy #16101

Closed
scttcper opened this issue Nov 23, 2021 · 3 comments · Fixed by #16212
Closed

Tooltip position throttle makes tooltip feel laggy #16101

scttcper opened this issue Nov 23, 2021 · 3 comments · Fixed by #16212
Labels

Comments

@scttcper
Copy link

Version

5.2.2

Steps to reproduce

With transitionDuration: 0 and a tooltip position that follows the cursor. In #15683 a throttle was added of 50ms to the position function.

I had initially thought it was the new method of positioning the tooltip with transform but it does seem to be the throttle in this case. related #16091

What is expected?

The tooltip should follow the mouse cursor as close as possible.

What is actually happening?

50ms throttle that did not exist in v4.


It does seem like the tooltip lags when dev tools is open and the throttle is gone.

@echarts-bot
Copy link

echarts-bot bot commented Nov 23, 2021

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 and chart option 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 to our mailing list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Nov 23, 2021
@plainheart plainheart added enhancement and removed bug pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Nov 26, 2021
@plainheart plainheart added this to the 5.x milestone Nov 26, 2021
plainheart added a commit that referenced this issue Dec 11, 2021
@plainheart plainheart removed this from the 5.x milestone Dec 11, 2021
@plainheart
Copy link
Member

Opened PR #16212 to disable throttle when transitionDuration is set as 0 to solve this issue. Feel free to help check if it works. Thanks!

@scttcper
Copy link
Author

@plainheart PR looks great!

pissang added a commit that referenced this issue Dec 14, 2021
fix(tooltip): fix tooltip lag issue when transition is disabled. (#16101)
@echarts-bot echarts-bot bot closed this as completed Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants