2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Scroll-by-drag in folders when reordering pinned.

Fixes #7459.
This commit is contained in:
John Preston
2020-03-29 12:57:59 +04:00
parent 484ec06b0c
commit 0b13ee7f7d
2 changed files with 5 additions and 2 deletions

View File

@@ -1247,7 +1247,8 @@ bool InnerWidget::updateReorderPinned(QPoint localPosition) {
const auto delta = [&] {
if (localPosition.y() < _visibleTop) {
return localPosition.y() - _visibleTop;
} else if (_openedFolder && localPosition.y() > _visibleBottom) {
} else if ((_openedFolder || _filterId)
&& localPosition.y() > _visibleBottom) {
return localPosition.y() - _visibleBottom;
}
return 0;