diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index 9cef777db..73f8f598e 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -932,7 +932,7 @@ void Widget::updateScrollUpVisibility() { } startScrollUpButtonAnimation( - (_scroll->scrollTop() > st::historyToDownShownAfter) + (_scroll->scrollTop() > (st::historyToDownShownAfter / 2)) && (_scroll->scrollTop() < _scroll->scrollTopMax())); } @@ -1676,11 +1676,7 @@ QPixmap Widget::grabForFolderSlideAnimation() { _scrollToTop->hide(); } - const auto rect = QRect( - 0, - 0, - width(), - _scroll->y() + _scroll->height()); + const auto rect = QRect(0, 0, width(), rect::bottom(_scroll)); auto result = Ui::GrabWidget(this, rect); if (!hidden) {