mirror of
https://github.com/vale981/tdesktop
synced 2025-03-05 09:41:41 -05:00
Fix chats list accidental scrolling.
This commit is contained in:
parent
89a0cd3e81
commit
0fe0311b45
1 changed files with 3 additions and 1 deletions
|
@ -1408,7 +1408,9 @@ void InnerWidget::refreshDialog(Key key) {
|
|||
const auto rowHeight = st::dialogsRowHeight;
|
||||
const auto from = dialogsOffset() + moved.from * rowHeight;
|
||||
const auto to = dialogsOffset() + moved.to * rowHeight;
|
||||
if (!_dragging && from != to) {
|
||||
if (!_dragging
|
||||
&& (from != to)
|
||||
&& (key.entry()->folder() == _openedFolder)) {
|
||||
// Don't jump in chats list scroll position while dragging.
|
||||
emit dialogMoved(from, to);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue