From 9741e0d223adbea2f3d96af45f344076c4f8ab66 Mon Sep 17 00:00:00 2001 From: Roman Pudashkin Date: Mon, 6 Jun 2022 10:51:56 +0200 Subject: [PATCH] fixed the ability to drag lines inside the range selection --- src/notation/internal/notationinteraction.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/notation/internal/notationinteraction.cpp b/src/notation/internal/notationinteraction.cpp index f04fc5de66..29dd612577 100644 --- a/src/notation/internal/notationinteraction.cpp +++ b/src/notation/internal/notationinteraction.cpp @@ -853,7 +853,13 @@ void NotationInteraction::startDrag(const std::vector& 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; }