Changed behavior to open section with scheduled messages at top.

This commit is contained in:
23rd 2024-03-21 20:17:33 +03:00
parent d6e4613144
commit 88dab47d2c
1 changed files with 3 additions and 1 deletions

View File

@ -1154,7 +1154,9 @@ Context ScheduledWidget::listContext() {
}
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) {
updateInnerVisibleArea();
return false;