more usable [scroll to bottom] button

This commit is contained in:
or-else
2022-05-19 18:21:35 -07:00
parent 6ffc03e8bd
commit 46b6a816eb
5 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -5771,7 +5771,7 @@ class MessagesView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
const pos = event.target.scrollHeight - event.target.scrollTop - event.target.offsetHeight;
this.setState({
scrollPosition: pos,
showGoToLastButton: pos > SHOW_GO_TO_LAST_DIST
showGoToLastButton: pos > SHOW_GO_TO_LAST_DIST && pos < this.state.scrollPosition
});
if (this.state.fetchingMessages) {