Fixed retrieving of cursor position when canvas is offset

It was previously incorectly calculated

	modified:   webgl.js