<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>&nbsp;</DIV>
<DIV>My solution:</DIV>
<DIV>&nbsp;</DIV>
<DIV>I check (with one if statement) &nbsp;the mouse position to be outside the area of tools and legend div. Simple</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></td></tr></table><br>