I am using webchat cdn of microsoft botframework to make a chatbot. When the welcome message is displayed, there are several buttons below my welcome card which goes beyond the visible area of the chat window. Thus, it automatically scrolls to bottom. I am triggering the webchat by clicking a widget button. I want to disable the scroll to button when the welcome message card appears such that user can see the welcome card area, not the buttons. How can I disable the auto scrolling?
How to disable automatic "scroll to bottom" in microsoft botframework webchat when the Welcome card renders?
611 views Asked by userbin At
2
There are 2 answers
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in BOTFRAMEWORK
- In TeamsFx, how to construct ConversationReference without having a saved reference?
- Add interruption button in Azure bot framework
- Single Tenant Teams Bot Authentication Error: Missing access_token
- How can I enable AAD SSO for bot so we can get user information via Teams toolkit
- Adaptive-card sortby on datetime property
- botbuilder send activity context on stream
- Unable to send message to my bot using direct line
- Cannot access to Azure Graph via BOT MS Teams
- Message alignment to the left for user and bot message bubble
- How to resolve Teams bot ID change after upgrade to TeamsFX v5
- Designing a truly multi-tenant ms teams app
- Microsoft Azure Bot Framework - Can bots with User Managed Identities be tested with "Test in Web Chat"?
- How to handle user's route on using python-telegram-bot?
- AdaptiveCard not rendering bullet list if the text is from variable
- how do you make an adaptive card input choice selection send the selected choice to the teams bot?
Related Questions in DIRECT-LINE-BOTFRAMEWORK
- Unable to send message to my bot using direct line
- Message alignment to the left for user and bot message bubble
- Botframework webchat Directline | How to get rid op 502 error while streaming openai answers
- BotFramework-WebChat Error: <ActivityKeyerComposer> should not be nested
- name 'events' is not defined
- Cannot perform ‘set’ on a proxy that has been revoked
- Save and retrieve chats in Bot framework composer
- Is there a way to check agent Availability in Microsoft Directline APIs?
- Issue in connecting to bot service via Directline channel
- endOfConversation feature is not working in directline bot api of Dynamics
- DirectLine api for power virtual agent bot returns null as the conversatin id
- Bot ClientConnector CreateDirectConversationAsync return MethodNotAllowed
- Submit some activity in advance to start a session - botium with directline
- Is there any way to get back the conversation between bot and user on webchat (directline) in nodejs bot framework V4
- Response status code does not indicate success: 403 (Quota Exceeded)
Related Questions in WEB-CHAT
- Recompose bubble and add custom elements to content
- Botframework webchat | how to get rid of 5 second delay after oAuth prompt
- My text value is getting empty every time in React
- New Microsoft Azure Bot "Test in Web Chat" error : There was an error sending this message to your bot: HTTP status code InternalServerError 500
- Single Sign On from Website to embedded Bot Framework Webchat component
- Using Composer component with ReactWebChat
- Microphone with a very short pause is sending message to the bot
- Adaptive cards web chat: Validate one input field number is greater that the other input field number
- How do I use both Data and DataJson property of AdaptiveSubmitAction in Webchat channel
- Send Message to bot Framework Programmicaly using Vanilla javascript
- How to enable mic in webchat.js give by Microsoft bot framework. for PVA bot
- How to disable automatic "scroll to bottom" in microsoft botframework webchat when the Welcome card renders?
- Disable Submit Actions and Inputs for adaptive cards in BotFramework-Webchat
- Adaptive card are not showing in webchat where as showing in MS Teams
- Show card option teams and webchat is working differently
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Unfortunately, there isn't an option to disable the auto scrolling. There is a sample, 04.api/n.save-restore-scroll-position, that demonstrates how to save and restore a scroll position while traversing the Web Chat transcript window.
You may be able to alter that sample in such a way that a save spot is automatically created at some position as each new card is received.
Essentially, you would utilize Web Chat's
storeto monitor the activities checking for those that are from the bot and have an attachment. When that happens, fire an event that could trigger the process that saves the scroll position similar to a button being pressed.There may, however, be an issue with timing in this scenario as the
storeis the first stop when an activity is received. It then goes on to be rendered. So, any code enacted in the store that affects the rendering usually requires a delay of 50 - 300 ms before that code is run. Keep in mind, there is no guarantee that it will stop in the same spot every time, if successful. Below is an example demonstrating the setup.Some other options that might be better is to do someting similar as the above except in the
activityMiddlewareor in theattachmentMiddleware. These options allow you to act as the activities are being rendered but they can also be finickier.All in all, your mileage may vary in trying any of the above and will likely take a bit of massaging before you fully know if it'll work or not.
If you believe this should be an included option, I would suggest making this a feature request in the BotFramework-WebChat repo.