force scrollbar to avoid center jump