followCursor tooltip - reposition if you mouse over tooltip
See original GitHub issueDescribe the bug
In followCursor
mode, the tooltip doesn’t reposition if you move the mouse over the tooltip
To Reproduce Steps to reproduce the behavior:
- Go to the follow cursor demo https://react-popper-tooltip.netlify.com/#follow-cursor
- Mouse over to see tooltip
- Quickly move the mouse over the tooltip
- Tooltip doesn’t reposition
Expected behavior react-popper-tooltip should ensure tooltip doesn’t sit underneath cursor when in followCursor mode.
Screenshots
Desktop (please complete the following information):
- OS: Mac OS X
- Browser: Chrome
- Version: 83.0.4086.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Make CSS tooltip follow cursor - Stack Overflow
Something like this var tooltip = document.querySelectorAll('.coupontooltip'); document.addEventListener('mousemove', fn, false); function ...
Read more >jQuery PowerTip - GitHub Pages
Tooltips should not suddenly appear as soon as the mouse cursor happens to cross the element. They should only open when the cursor...
Read more >change tooltip position based on whether mouse is above or ...
Hi All,. Please see the working example below. You can hover over the rectangles to see the tooltip (I have deliberately left the...
Read more >Custom Tooltip Follows Mouse Cursor - jQuery YACSSTooltip
Yet another jQuery tooltip plugin to create tooltip overlays using alt or title attributes that always follow the cursor on mouse move.
Read more >React Suite Tooltip Follow Cursor - GeeksforGeeks
In this article, we'll learn about React suite Tooltip Follow Cursor. The tooltip component allows users to display informative text when ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe, if you add
pointer-events: none
to the.tooltip-container
it should resolve this issue.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.