Scrolling of the terminal does not always stick to the bottom
Not related to the trackpad, but you can use your keyboard to scroll to the bottom of the document and be sure it sticks to it!

Press fn + RightArrow