Position tooltip where mouse enters the trigger? #2312
Unanswered
Only8Bytes
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am not sure if this is possible, but is there any way to position the tooltip where the mouse enters the trigger? The use case is that I have a diagram showing circuit connections between different nodes and the positioning of the nodes may cause the circuit(which triggers the tooltip) to be quite long. Currently, using the "sticky" property I can set the tooltip to always appear within the viewport. However, it would be even more useful to be able to have it appear exactly where the user's mouse hovers over the circuit(the trigger) in the diagram. I have found a workaround shared here previously that allows the tooltip to follow the mouse while it is hovering over the trigger, but that is not quite the desired result. I have attempted to modify it to fit my need, but was unsuccessful.
I have seen some discussions about having the tooltip follow the mouse which were all shot down, but I feel that this is has a broader use case. I'm still messing around with some ideas to make this function as expected, but they all feel like hacky solutions. Perhaps this is something that could be supported by the component natively. I will update this discussion if I find a solution.
Beta Was this translation helpful? Give feedback.
All reactions