Don't block main queue with drag operation

This commit is contained in:
Ilya Fedin 2022-02-22 13:19:07 +04:00 committed by John Preston
parent 9309f98094
commit 5d5b964f4e

View file

@ -3278,7 +3278,7 @@ void HistoryInner::mouseActionUpdate() {
if (item != _mouseActionItem || (m - _dragStartPosition).manhattanLength() >= QApplication::startDragDistance()) {
if (_mouseAction == MouseAction::PrepareDrag) {
_mouseAction = MouseAction::Dragging;
crl::on_main(this, [=] { performDrag(); });
InvokeQueued(this, [=] { performDrag(); });
} else if (_mouseAction == MouseAction::PrepareSelect) {
_mouseAction = MouseAction::Selecting;
}