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
followCursor tooltip - reposition if you mouse over tooltip #89
Comments
this is the intended behaviour, as it's tracking mouse position within the bounds of the trigger and not the tooltip or anything else |
This is "within the bounds of the trigger" but the tooltip is overlayed on top of these bounds. If the tooltip was repositioned instantly then you would never see this issue as you wouldn't be able to mouse over it. The issue happens when you quickly move the mouse over the tooltip before it has a chance to reposition. I accept this may be hard to solve due to the inner workings of what's happening, but I'd question whether this is intended behaviour. |
oh got it, yes the positioning happens asynchronously, so your situation can occur. Right now I don't have the bandwidth to look into it. Feel free to raise a PR. Otherwise I'll give it a look this weekend. |
I believe, if you add |
Yep that works for me, thanks! Happy for this issue to be closed, unless you think it needs to be solved in the lib or added to the docs. |
on second thoughts, if it's easy enough to add |
@penx the library doesn't and shouldn't come with inherent CSS, just event handlers, CSS is kept to the user to add. Hence I'm closing the issue. |
Describe the bug
In
followCursor
mode, the tooltip doesn't reposition if you move the mouse over the tooltipTo Reproduce
Steps to reproduce the behavior:
Expected behavior
react-popper-tooltip should ensure tooltip doesn't sit underneath cursor when in followCursor mode.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: