adjust scroll with direction

never noticed the bug but might occur
fix selection when in scrollback when underneath scrolling occur