question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autoscroll not working with hideScrollToEndButton:true style option

See original GitHub issue

Version

latest (4.6.0)

Describe the bug

To Reproduce

Steps to reproduce the behavior:

  1. Set up webchat with hideScrollToEndButton:true styling option
  2. Generate more responses
  3. Scroll up and click on action (adaptive card submit) that sends JSON value to bot (no user bubble rendered)
  4. When response from the bot lands auto scroll doesn’t happen

Expected behavior

Chat to scroll down to last message

Additional context

Jump to discussion

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
corinagumcommented, Nov 18, 2019

@baki32, unfortunately you will need to make these changes in React - this falls under customization that is not supported in vanilla JavaScript.

1reaction
corinagumcommented, Nov 4, 2019

@baki32, I got a chance to discuss this issue with the Web Chat team - let me summarize below.

  • Due to the user experience, auto-scrolling to the bottom of the transcript whenever the bot sends a message to the user is not a feature that the app will expose by default. This is due to the fact that a user might be reviewing previous messages, and every time a new message comes in from the bot, the view would be dropped back to the bottom. This could potentially be very aggravating to the user.
  • The discrepancy between sending a message via enter and by clicking a button will not be addressed in this issue, since it is separate from your desired functionality.
  • If you still want to implement the auto-scroll feature whenever the bot sends a message, you can do so by implementing Web Chat middleware.

Steps:

  1. Take a look at sample https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/11.customization-redux-actions
  2. Implement a redux middleware that will call scrollToEnd() on every received activity from the bot.

If you need help with the implementation, I suggest heading over to Stack Overflow’s Web Chat tag where our support engineers can give you guidance. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autoscroll property of TableLayoutPanel is not working
Looking at your code from the comments in another question , you seem to be adding rowstyles on every row, try adding your...
Read more >
Auto scroll option on the mouse is not working.
Auto scroll "button" appears when mouse wheel middle-clicked, but will not scroll. ... Auto scroll option on the mouse is not working.
Read more >
Why Does the Auto Scroll Setting Not Appear on My Venu ...
For the Auto Scroll setting to appear as an option on a Venu series watch, the display must be set to "Always On"...
Read more >
Autoscroll in Matrix is not working
Hi I am using the awesome Matrix visual but one problem that creates confusing is the automatic scrolling that doesn't always seem to...
Read more >
overscroll-behavior - CSS: Cascading Style Sheets | MDN
In particular, since an <iframe> is not a scroll container, ... using overscroll-behavior-y ( overscroll-behavior would also work) on the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found