mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Don't block main queue with drag operation
This commit is contained in:
parent
9309f98094
commit
5d5b964f4e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue