Hi everyone,
I have a Raphael object inside an HTML div.
While adding a .doubleclick event on the Raphael object, all the text inside the HTML div gets selected. Is there a way to disable this?
I tried:
$("#mydiv").doubleclick(function(event) { event.preventDefault() });
and also
myraphobj.doubleclick(function(event) { event.preventDefault() });
But none of them seem to work. I think it is because Raphael interprets the doubleclick event before jQuery, and the preventDefault() function never reaches jQuery to execute... I might be wrong on this but this is my hypothesis.
Anyways, does anyone has a solution for this?
Thanks,
Adrian