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.

useHover's delay and restMs do not work on some Linux machines

See original GitHub issue

These issues were discovered while working on https://github.com/mantinedev/mantine/issues/2569

Myself and another user were experiencing mouseOnly would not work on our machines. Once I discovered this and fixed it, I immediately noticed that tooltip delays were not being honored.

I tried restMs as well, but the outcome is the same.

The closeDelay works on the elements, but only if the page remains focused. If the button is hovered while the page is not focused, then the closeDelay also has no effect.

I believe this is because of the way Linux is handling mouse input, though I’m not sure how exactly.

So of course, I don’t really expect mouseOnly to be fixed, but certainly the delays should work as intended?

Here’s a CodeSandbox derived from the tooltip docs:

I believe this issue can be reproduced on any machine by using VMWare - although that is an untested assumption. Importantly, this issue does not only affect VMWare - it just seems the best way to reproduce the problem.

Assuming that VMWare on any machine can produce the issue, one could try a ready-made Kubuntu image via VMDK file with VMWare Workstation Player

If there’s any more useful information I can provide, please let me know.

Tested with versions 0.10.2 to 0.13.2

Thanks for all of your hard work!

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
atomikscommented, Dec 7, 2022

It will take like two seconds to fix — and yeah I’m guessing it’s just a bug with Linux/Chromium that’s unfixable and we just need to work around it. If you want, you can make a PR that checks for both mouse and pen, in the meantime before release, you can just use patch-package and patch on an additional check for “pen”.

2reactions
atomikscommented, Dec 7, 2022

If it’s recognized as pen then that definitely is gonna break the logic as it needs to be mouse 😆 uhmm I guess touch is more important to be ignored for than pen so maybe we can check for both

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slapbox
useHover's delay and restMs do not work on some Linux machines ; electron/asar 2 open ; redux-saga/redux-saga 1 open ; ibrod83/nodejs-file-downloader 1 closed....
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