adjust scrolling behavior for the messages wrapper