From cdf27296e40c9c716b1433aae1e4fa5a1dc2234d Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 20 Mar 2025 18:04:14 +0400 Subject: [PATCH] Fix deselecting dialog rows between them. --- Telegram/SourceFiles/dialogs/dialogs_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_list.cpp b/Telegram/SourceFiles/dialogs/dialogs_list.cpp index ce6a724625..e3c8044413 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_list.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_list.cpp @@ -198,7 +198,7 @@ Row *List::rowAtY(int y) const { List::iterator List::findByY(int y) const { return ranges::lower_bound(_rows, y, ranges::less(), [](const Row *row) { - return row->top() + row->height(); + return row->top() + row->height() - 1; }); }