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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user