Bug - Random persistent Zotero tooltip on Windows
For a few days I've been randomly getting persistent tooltips from items in Zotero. This has been happening on two different Windows 10 PCs, both with Zotero beta installed.
I've taken a few screenshots (since it's happening now, I have a persistent tooltip as I'm writing this post):
https://1drv.ms/u/s!AjsmmAbO5NonktQDJI1cqwwFiL1IMQ?e=Hvf81L
These tooltips persist both inside Zotero (screenshot 1 and 2) and on everywhere else on the PC (screenshot 3, just an example of the tooltip while in Brave, but it's stuck if I go to any other app/window/tab, including the desktop).
They happen randomly (they don't happen every time Zotero renders a tooltip) and disappear equally as randomly - sometimes they vanish on their own, but most of the times I must restart Zotero for it to go away. I have not been able to identify what triggers it.
If I hover my mouse over the persistent tooltip, it disappears for a second only to appear on a slightly different location (see screenshot 1 to screenshot 2).
Showing other tooltips in Zotero doesn't change anything regarding the tooltip that's persistent (screenshot 4).
5.0.97-beta.24+833ee1051
PS: just now, opening and closing the "About Zotero" dialog to copy the version number made the persistent tooltip disappear on closing
I've taken a few screenshots (since it's happening now, I have a persistent tooltip as I'm writing this post):
https://1drv.ms/u/s!AjsmmAbO5NonktQDJI1cqwwFiL1IMQ?e=Hvf81L
These tooltips persist both inside Zotero (screenshot 1 and 2) and on everywhere else on the PC (screenshot 3, just an example of the tooltip while in Brave, but it's stuck if I go to any other app/window/tab, including the desktop).
They happen randomly (they don't happen every time Zotero renders a tooltip) and disappear equally as randomly - sometimes they vanish on their own, but most of the times I must restart Zotero for it to go away. I have not been able to identify what triggers it.
If I hover my mouse over the persistent tooltip, it disappears for a second only to appear on a slightly different location (see screenshot 1 to screenshot 2).
Showing other tooltips in Zotero doesn't change anything regarding the tooltip that's persistent (screenshot 4).
5.0.97-beta.24+833ee1051
PS: just now, opening and closing the "About Zotero" dialog to copy the version number made the persistent tooltip disappear on closing
Zotero 5.0.97-beta.24+833ee1051
Really annoying, and I also haven't found anyway to make it go away except by moving the mouse/hovering over it, but it just reappears whenever the mouse cursor stops.
var tooltipElem = document.getElementById('fake-tooltip');
tooltipElem;
The problem seems to be that the tooltip remains in a {"state": "open"} situation after the PDF tab has been closed. This can happen when closing a PDF tab with the mouse pointer. While hovering over the close "x" button, you're getting the tooltip. Once the tab is closed, it somehow can't go to the {"state": "closed"} situation, which seems to be causing the issue.
onMouseOut
:https://github.com/zotero/zotero/commit/74b9604c7b57b2460952c1b8017a78a436d1e963
But I see that @qqbb seems to have figured out what seems to be the cause :)