question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

followCursor tooltip - reposition if you mouse over tooltip

See original GitHub issue

Describe 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:

  1. Go to the follow cursor demo https://react-popper-tooltip.netlify.com/#follow-cursor
  2. Mouse over to see tooltip
  3. Quickly move the mouse over the tooltip
  4. Tooltip doesn’t reposition

Expected behavior react-popper-tooltip should ensure tooltip doesn’t sit underneath cursor when in followCursor mode.

Screenshots

follow-cursor

Desktop (please complete the following information):

  • OS: Mac OS X
  • Browser: Chrome
  • Version: 83.0.4086.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
denisborovikovcommented, Mar 16, 2020

I believe, if you add pointer-events: none to the .tooltip-container it should resolve this issue.

2reactions
penxcommented, Mar 16, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found