Here, i am trying to stop the mouse down event of body when mouse down of SVG if fired. I also tried the event.stopPropagation
but here it is not working.
Here is my code.
var svgElem=document.getElementById("mySVG");
svgElem.onmousedown=function(){
event.stopPropagation();
event.preventDefault();
console.log("svg down");
}
document.body.onmousedown=function(){
console.log("body down");
}
body mouse down is fired after SVG mouse down.