Fixed mouse event

Now the canvas is no longer sized or centred correctly, need to look at
a way to do this.