fixed the ability to drag lines inside the range selection

This commit is contained in:
Roman Pudashkin 2022-06-06 10:51:56 +02:00
parent 91fb925bf8
commit 9741e0d223

View file

@ -853,7 +853,13 @@ void NotationInteraction::startDrag(const std::vector<EngravingItem*>& elems,
m_editData.modifiers = QGuiApplication::keyboardModifiers();
for (EngravingItem* e : m_dragData.elements) {
if (!isDraggable(e)) {
bool draggable = isDraggable(e);
if (!draggable && e->isSpanner()) {
draggable = isDraggable(toSpanner(e)->frontSegment());
}
if (!draggable) {
continue;
}