From 0fe0311b450d7453eb25176614c637f1f3bf55f8 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 8 May 2019 23:46:52 +0300 Subject: [PATCH] Fix chats list accidental scrolling. --- Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp index 304e0158c..b69545889 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp @@ -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); }