keep relMouseCoords out of HTMLCanvasElement
add a minified version for convenience