Hi all, we are using the following snippet for a tooltip that appears when you hover over a target element. The code allows it to dismiss when you click outside the guide: https://github.com/pendo-io/snippets/blob/master/guides/dismissingGuides/dismissWhenClickOutsideGuide/dismissWhenClickOutsideGuide.js
We want to change this to hover - so it will dismiss when you stop hovering over the element or the guide. You can easily do this by changing the words "click" to "mouseover" in the code and it works. HOWEVER, unfortunately, it dismisses so fast when you try to move from the element to the tooltip that its difficult to get it to stay long enough to get your mouse over the guide!
I have played around with various set-timeouts to the function but cannot get success. We want some version of this: https://stackoverflow.com/questions/12936103/how-do-i-execute-a-function-after-a-two-second-hover where the code only triggers if you're hovering over document for 2 seconds, and if you hover over the element/guide again it restarts. Can someone provide the right syntax for me?