Scroll on resize if at the bottom of the bufferlines

main application of this: opening the keyboard on mobile devices