mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Fix deselecting dialog rows between them.
This commit is contained in:
@@ -198,7 +198,7 @@ Row *List::rowAtY(int y) const {
|
|||||||
|
|
||||||
List::iterator List::findByY(int y) const {
|
List::iterator List::findByY(int y) const {
|
||||||
return ranges::lower_bound(_rows, y, ranges::less(), [](const Row *row) {
|
return ranges::lower_bound(_rows, y, ranges::less(), [](const Row *row) {
|
||||||
return row->top() + row->height();
|
return row->top() + row->height() - 1;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user