Changes hitEdge to use the real size of the Canvas