diff --git a/chatto/src/main/javascript/ts/src/view/ChatView.ts b/chatto/src/main/javascript/ts/src/view/ChatView.ts index 1521490..038e45b 100644 --- a/chatto/src/main/javascript/ts/src/view/ChatView.ts +++ b/chatto/src/main/javascript/ts/src/view/ChatView.ts @@ -82,6 +82,14 @@ export class ChatView implements Observer { // if (cd.data.length > 0) { // this._userModel.notify(); // } + $(this._messageContainer) + .stop() + .animate( + { + scrollTop: $(this._messageContainer)[0].scrollHeight, + }, + 1500 + ); } break; case "page":