I am using this scrollbar for a messaging app, where, when a new contact is selected, all the messages shows in the detail panel, and that panel, upon initial load, should always be scrolled to bottom to show the latest message.
How can I implement the scrollbar so that the default position is always at the bottom (without using scrollToBottom on load). The content is dynamic, so cannot set the setTop to a contact value. Need a feature like setBottom:0 by default. Any other way to achieve it?
I am currently doing it using scrollToBottom on load, and it shows a jitter due to scroll, which is not a great experience.
Note: The solution posted on https://github.com/malihu/malihu-custom-scrollbar-plugin/issues/409 generate unpleasent jitter on load.
I am using this scrollbar for a messaging app, where, when a new contact is selected, all the messages shows in the detail panel, and that panel, upon initial load, should always be scrolled to bottom to show the latest message.
How can I implement the scrollbar so that the default position is always at the bottom (without using scrollToBottom on load). The content is dynamic, so cannot set the setTop to a contact value. Need a feature like setBottom:0 by default. Any other way to achieve it?
I am currently doing it using scrollToBottom on load, and it shows a jitter due to scroll, which is not a great experience.