nodeview: enable mouse tracking at all times

Slightly less efficient, but fixes #1618, a seemingly
Linux-exclusive Qt bug which caused strange drag issues.
This commit is contained in:
itsmattkc
2021-05-11 11:16:59 +10:00
parent 27c9b8b4fe
commit 72d5b4af86
-3
View File
@@ -824,8 +824,6 @@ void NodeView::AttachItemsToCursor(const QVector<NodeViewItem*>& items)
attached_items_.append({i, i->pos() - items.first()->pos()});
}
setMouseTracking(true);
MoveAttachedNodesToCursor(mapFromGlobal(QCursor::pos()));
}
}
@@ -833,7 +831,6 @@ void NodeView::AttachItemsToCursor(const QVector<NodeViewItem*>& items)
void NodeView::DetachItemsFromCursor()
{
attached_items_.clear();
setMouseTracking(false);
}
void NodeView::SetFlowDirection(NodeViewCommon::FlowDirection dir)