You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.
Hi, This script has been super helpful on my project.
However I'm running into one issue. I have it so when a user hovers a state, a little tooltip appears by the mouse with info about the state.
That's working great and looks fantastic, however I've been noticing that it just eats CPU, since I have to repaint the tooltip every time the mouse moves.
I'm wondering if theres a way to find the center of the object that is hovered, and then bind the tooltip object to that as opposed to the mouse position? That way it would only run one repaint per hover. Any thoughts?
I know you left this a long time ago but I just did this as I was having the same problem. I used a timer to wait until the mouse has stopped before I display the tooltip. This now works as most tooltips do. Let me know if you are still looking and I'll add the code.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, This script has been super helpful on my project.
However I'm running into one issue. I have it so when a user hovers a state, a little tooltip appears by the mouse with info about the state.
That's working great and looks fantastic, however I've been noticing that it just eats CPU, since I have to repaint the tooltip every time the mouse moves.
I'm wondering if theres a way to find the center of the object that is hovered, and then bind the tooltip object to that as opposed to the mouse position? That way it would only run one repaint per hover. Any thoughts?
I'm running this so far:
The text was updated successfully, but these errors were encountered: