optimize code that sets scrollingUp
fix scrolling with focus inside viewer, but outside scroller