Improve convertEventCoords