function mouse_move_handler(e) {
        //Saves the previous coordinates
        mouse.px = mouse.x;
        mouse.py = mouse.y;

        //Sets the new coordinates
        mouse.x = e.offsetX || e.layerX;
        mouse.y = e.offsetY || e.layerY;
    }
/*
    This function is called whenever the mouse coordinates have changed. The coordinates are checked by the 
    browser at intervals.
    */
This function is called whenever the mouse coordinates have changed. The coordinates are checked by the
browser at intervals.
This function is called whenever the mouse coordinates have changed . The coordinates are checked by the browser at intervals .
function mouse_move_handler(e) {
        mouse.px = mouse.x;
        mouse.py = mouse.y;
        mouse.x = e.offsetX || e.layerX;
        mouse.y = e.offsetY || e.layerY;
    }
function mouse_move_handler ( e ) { mouse . px = mouse . x ; mouse . py = mouse . y ; mouse . x = e . offsetX || e . layerX ; mouse . y = e . offsetY || e . layerY ; }
This function is called whenever the mouse coordinates have changed.
This function is called whenever the mouse coordinates have changed .
//Saves the previous coordinates //Sets the new coordinates