Tooltip flickers when you hover over list item.
I have this tooltip that shows up when you enter a list item with your mouse. The tooltip is partly placed on top of the list item, so it makes sense that if you move your mouse off the list and onto the tooltip itself the tooltip dissapears. It actually starts to flicker because when the tooltip is gone, your mouse placed on the list item and the tooltip shows up again which ends up in a loop.
I understand why it flickers, but I don't really know how to prevent that from happening.
The script I use simply says
$(elem).mouseenter(function() {
show tooltip
}).mouseleave(function() {
hide toolip
});
You can see what I mean if you hover over the small white block in the middel of the page. The purple border is the edge of the tooltip. When you cross that purple border the trouble starts.
http://tijmensmit.com/dev/jquery/How could I prevent this flickering from happening?
Thanks :)