Account for page zoom in getMousePosition