Ubi
Ubi

Reputation: 129

Prevent hover triggering for div in raphael

I need to draw custom dom tooltip over raphael svg element. How to prevent event triggering mouseleave for element, when you hover tooltip?

Check this example:

$(c.node).mouseenter(function(){
    tipText = 'text';
    tip.show();
    over = true;
}).mouseleave(function(){
    tip.hide();
    over = false;
});

http://jsfiddle.net/QK7hw/707/

Upvotes: 0

Views: 64

Answers (1)

Ian
Ian

Reputation: 13852

Try adding the style

pointer-events: none;

To the tooltip, that should stop the odd hover flashing.

jsfiddle

Upvotes: 1

Related Questions