Cursor y calculation extracted.