mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix(tooltip): prevent orphaned tooltips when clicking during hover delay
This commit is contained in:
@@ -26,8 +26,8 @@ Singleton {
|
||||
return;
|
||||
}
|
||||
|
||||
// If we have a pending tooltip for a different target, cancel it
|
||||
if (pendingTooltip && pendingTooltip.targetItem !== target) {
|
||||
// Cancel any pending tooltip (same or different target)
|
||||
if (pendingTooltip) {
|
||||
pendingTooltip.hideImmediately();
|
||||
pendingTooltip.destroy();
|
||||
pendingTooltip = null;
|
||||
|
||||
Reference in New Issue
Block a user