mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-17 22:57:11 +02:00
Changed behavior to show earlier button in dialog list to jump to top.
This commit is contained in:
parent
057222757b
commit
ae3f16ccbd
1 changed files with 2 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue