mirror of https://github.com/procxx/kepka.git
Fix chats list accidental scrolling.
This commit is contained in:
parent
89a0cd3e81
commit
0fe0311b45
|
@ -1408,7 +1408,9 @@ void InnerWidget::refreshDialog(Key key) {
|
||||||
const auto rowHeight = st::dialogsRowHeight;
|
const auto rowHeight = st::dialogsRowHeight;
|
||||||
const auto from = dialogsOffset() + moved.from * rowHeight;
|
const auto from = dialogsOffset() + moved.from * rowHeight;
|
||||||
const auto to = dialogsOffset() + moved.to * 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.
|
// Don't jump in chats list scroll position while dragging.
|
||||||
emit dialogMoved(from, to);
|
emit dialogMoved(from, to);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue