correcting for when canvas is not at the top of the scrreen