mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Changed behavior to show earlier button in dialog list to jump to top.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user