Skip to content

Commit a1dc4af

Browse files
author
Nicholas Newberry
committed
scroll to bottom on message update
1 parent c261d03 commit a1dc4af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/javascript/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Turbo.StreamActions.scroll_to_bottom = function () {
1111
if (endOfConversation == null) {
1212
console.log("WARNING: could not find 'end-of-conversation' element.")
1313
} else {
14-
endOfConversation.scrollIntoView();
14+
endOfConversation.scrollIntoView({behaviour: "smooth"});
1515
}
1616
}

0 commit comments

Comments
 (0)