mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +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(
|
startScrollUpButtonAnimation(
|
||||||
(_scroll->scrollTop() > st::historyToDownShownAfter)
|
(_scroll->scrollTop() > (st::historyToDownShownAfter / 2))
|
||||||
&& (_scroll->scrollTop() < _scroll->scrollTopMax()));
|
&& (_scroll->scrollTop() < _scroll->scrollTopMax()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1676,11 +1676,7 @@ QPixmap Widget::grabForFolderSlideAnimation() {
|
|||||||
_scrollToTop->hide();
|
_scrollToTop->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto rect = QRect(
|
const auto rect = QRect(0, 0, width(), rect::bottom(_scroll));
|
||||||
0,
|
|
||||||
0,
|
|
||||||
width(),
|
|
||||||
_scroll->y() + _scroll->height());
|
|
||||||
auto result = Ui::GrabWidget(this, rect);
|
auto result = Ui::GrabWidget(this, rect);
|
||||||
|
|
||||||
if (!hidden) {
|
if (!hidden) {
|
||||||
|
Reference in New Issue
Block a user