corrected input coord in canvas mode.