Check if we should prune messages below the current view.
Note:
Not yet integrated into the scroll handler. Intended for future pruning of messages below the viewport when the user scrolls far up.
Current scroll Y position.
Height of the viewport.
Total height of all content.