can someone explain how i can use an ondblclick event to cancel an onmousemove event?

would I use cancelBubble for this?

i have a statement in my header
document.onmousemove = updateMouseCoordinates;
that moves a sentence of text around the screen.

when i try to call a function using ondblclick event in the <p> tag, it fails to call function. without statement above, the function is called....

my purpose is to just cancel the onmousemove in event user performs a double click.

Can someone advise? thanks!