Ticket0559: Extract the cursorPosition API