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.

reset/debounce leave/hide timer on interactive tooltip

See original GitHub issue

Current Scenario

demo

https://codepen.io/anon/pen/jpRxBY

Currently, onMouseMove executes immediately, therefore breaking any interactive tooltip that is further away from the reference.

Possible Solution

If there is a way to debounce the onMouseMove event, only the last onMouseMove event will execute, and if the mouse is on top of the interactive element, the interactive element should not hide.

demo

The gif above is from medium.com

Related

#193

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
atomikscommented, Aug 16, 2018

Please see v3.0.0-alpha.3. Added interactiveDebounce option (number in ms). Works nicely with 50-100 from my testing

1reaction
atomikscommented, Aug 14, 2018

#193 is now fixed in v3 alpha.2 but need to tend to this now…

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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