Updated cursor position mapping.