mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Changed behavior to open section with scheduled messages at top.
This commit is contained in:
parent
d6e4613144
commit
88dab47d2c
1 changed files with 3 additions and 1 deletions
|
@ -1154,7 +1154,9 @@ Context ScheduledWidget::listContext() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ScheduledWidget::listScrollTo(int top, bool syntetic) {
|
bool ScheduledWidget::listScrollTo(int top, bool syntetic) {
|
||||||
top = std::clamp(top, 0, _scroll->scrollTopMax());
|
top = (top == ScrollMax && syntetic)
|
||||||
|
? 0
|
||||||
|
: std::clamp(top, 0, _scroll->scrollTopMax());
|
||||||
if (_scroll->scrollTop() == top) {
|
if (_scroll->scrollTop() == top) {
|
||||||
updateInnerVisibleArea();
|
updateInnerVisibleArea();
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue