Skip to main content
Automatically scrolls the chat view to the latest message in the conversation.

Syntax

instance.doAutoScroll();

Parameters

None

Returns

void
Returns a void operator.

Examples

The following example scrolls to the latest message after receiving a response:
// Scroll to the latest message after receiving a response
instance.on('receive', (event, instance) => {
    instance.doAutoScroll();
});

Do you need practical examples?

Learn how to apply the features available for embedded chat into your implementation with guidance and examples.