Fix chats list accidental scrolling.

This commit is contained in:
John Preston 2019-05-08 23:46:52 +03:00
parent 89a0cd3e81
commit 0fe0311b45
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}