Fix scroll position jump on selection setAfter