react-scroll-to-bottom icon indicating copy to clipboard operation
react-scroll-to-bottom copied to clipboard

AtBottom Property

Open bzastrow232 opened this issue 6 years ago • 1 comments

I get kind of an annoying issue with the property AtBottom inside the "ScrollToBottomStateContext" state.

If scrolled all the way to the bottom of the chat, the AtBottom property stays true which is what I want, but when I open and close the chat more than 2-3 times the AtBottom property will result to false, leave an icon/image at the bottom of the chat when it should be true.

Also animations like .show(), .hide(), .toggle(), .slideUp(), .slideDown(), .sideToggle(), etc...

This react component interferes with those animations since the AtBottom property will remain true and keep an icon/image at the bottom of the chat.

Is there a way you can make sure that AtBottom property is always true when at the bottom of the chat and that an icon doesn't display whereas on the first open close of the chatbot there is nothing wrong with AtBottom property, but as soon as the chatbot is opened and closed more than 2-3 times, the AtBottom property get set to false even though the property is already at the bottom of the chatbot/(ul) container.

bzastrow232 avatar Sep 10 '19 15:09 bzastrow232

Can you make a short repro HTML/JS for this? I don't quite get it just from words.

compulim avatar Jun 22 '20 08:06 compulim