mDown(e){
        // positions of the mouse
        console.log("mousedown event")
        // taking mouse position relative to the top point of the canvas and giving that to the x/yMouseStar
        // The offsetX is taken from the EventObject
        this.xMouseStart = e.offsetX;
        this.yMouseStart = e.offsetY;
        // when mouse goes down it stays down
        this.mouseDown = true;
    }
// this function is called when the user has clicked down
this function is called when the user has clicked down
this function is called when the user has clicked down
mDown(e){
        console.log("mousedown event")
        this.xMouseStart = e.offsetX;
        this.yMouseStart = e.offsetY;
        this.mouseDown = true;
    }
mDown ( e ) { console . log ( "mousedown event" ) this . xMouseStart = e . offsetX ; this . yMouseStart = e . offsetY ; this . mouseDown = true ; }
this function is called when the user has clicked down
this function is called when the user has clicked down
// positions of the mouse // taking mouse position relative to the top point of the canvas and giving that to the x/yMouseStar // The offsetX is taken from the EventObject // when mouse goes down it stays down