move the focus only in the visible viewport