Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

118
Visualizações
Microsoft Botframework WebChat: always scroll down

Usually the Botframework Webchat scrolls down on a new message, if the user didn't scroll up manually. Otherwise a button appears at the bottom right which lets you scroll down to the new message.

I would like to scroll down automatically, always. Currently I'm using this middleware that doesn't work well:

    if (action.type === 'DIRECT_LINE/INCOMING_ACTIVITY' && document.querySelector('ul[role="list"]').lastChild && !scrollBarIsAtBottom()) {
        document.querySelector('ul[role="list"]').lastElementChild.scrollIntoView(true);
        const selector = document.querySelector("[role=log]");
        if (selector && selector.lastElementChild && selector.lastElementChild.getAttribute('type') === 'button') {
            selector.lastElementChild.setAttribute("hidden", "true");
        }
    }

It scrolls down automatically before the chat or card is fully rendered. The user has to scroll down manually again.
Is there a way to scroll down automatically after rendering?

We're using version 3 of the Botframework Webchat.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda