function canvasSwitch() {
    document.getElementById('defaultCanvas0').onmouseover = function()   {
        if (controlling == false) {
            hovered = true;
        }
    };
   document.getElementById('defaultCanvas0').onmouseout = function()   {
        hovered = false;
        lastHovered.x = mouseX;
        lastHovered.y = mouseY;
   }
}
//    alter spin with mouse position over canvas, if not over canvas save the last place it was
alter spin with mouse position over canvas, if not over canvas save the last place it was
alter spin with mouse position over canvas if not over canvas save the last place it was
function canvasSwitch() {
    document.getElementById('defaultCanvas0').onmouseover = function()   {
        if (controlling == false) {
            hovered = true;
        }
    };
   document.getElementById('defaultCanvas0').onmouseout = function()   {
        hovered = false;
        lastHovered.x = mouseX;
        lastHovered.y = mouseY;
   }
}
function canvasSwitch ( ) { document . getElementById ( 'defaultCanvas0' ) . onmouseover = function ( ) { if ( controlling == false ) { hovered = true ; } } ; document . getElementById ( 'defaultCanvas0' ) . onmouseout = function ( ) { hovered = false ; lastHovered . x = mouseX ; lastHovered . y = mouseY ; } }
alter spin with mouse position over canvas, if not over canvas save the last place it was
alter spin with mouse position over canvas if not over canvas save the last place it was