Create handler for clicking on chatboxes and adjust scrollTo position.