From ff4ccdc59c5748ebc9eb208a3ce550f550064a78 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 16 Dec 2019 02:07:22 +0300 Subject: [PATCH] Fixed covering right part of chat list with dialogs up button at end. --- Telegram/SourceFiles/dialogs/dialogs_widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index 86b305d83..8fbf57622 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -331,7 +331,8 @@ void Widget::updateScrollUpVisibility() { } startScrollUpButtonAnimation( - _scroll->scrollTop() > st::historyToDownShownAfter); + (_scroll->scrollTop() > st::historyToDownShownAfter) + && (_scroll->scrollTop() < _scroll->scrollTopMax())); } void Widget::startScrollUpButtonAnimation(bool shown) {