<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>I found solution for roi - line tool, so I think that solution is similar for the others tools.</DIV>
<DIV> </DIV>
<DIV>My solution:</DIV>
<DIV> </DIV>
<DIV>I check (with one if statement) the mouse position to be outside the area of tools and legend div. Simple</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV></td></tr></table><br>