tipped icon indicating copy to clipboard operation
tipped copied to clipboard

Tooltip always triggered even with long showDelay

Open PapillonUK opened this issue 5 years ago • 2 comments

There is no way to prevent a tooltip from triggering if you move your mouse over it even for a fraction of a second.

Even if you add showDelay: 3000 the tooltip will still trigger if you have moved over it 3 seconds ago and your mouse is over the other side of the screen.

This is a real problem when you have many elements on a screen with tooltips - made even worse if they all trigger an AJAX request.

There should be a way to prevent tooltips triggering at all until you've hovered over them for x millsecs. showDelay could check to see if the mouse is still over the element before showing the tooltip.

Or perhaps we need a triggerDelay option?

Obviously this is only for tooltips triggered with a hover.

PapillonUK avatar Aug 17 '20 14:08 PapillonUK

有解决方案了吗? 目前采用hideOthers: true隐藏其他,但是这种不太支持联动啊

Outlierw avatar Dec 02 '20 09:12 Outlierw

Update. This issue is still not fixed. This only seems to be an issue when hideOn is set to "click" when that's not the case the tooltip's AJAX call is cancelled once your mouse cursor has moved away from it. It's as if a hide command is sent to normal tooltips which cancels the AJAX request before it happens, but that hide command is not sent to tooltips where hideOn = "click". Those still make the AJAX request even if the mouse just passes over them on the way to another area of the screen. I'm trying to find a solution as my users are complaining about this now!

PapillonUK avatar Mar 26 '21 09:03 PapillonUK