From f033ba7af08188099b99d7e2604aec94e7353858 Mon Sep 17 00:00:00 2001 From: Calum Matheson Date: Fri, 15 Sep 2023 09:33:02 +0100 Subject: [PATCH] Fix #13440: Text etc no longer clickable during playback --- src/notation/view/notationviewinputcontroller.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/notation/view/notationviewinputcontroller.cpp b/src/notation/view/notationviewinputcontroller.cpp index 744c0debcecf3..caa15c26f6de9 100644 --- a/src/notation/view/notationviewinputcontroller.cpp +++ b/src/notation/view/notationviewinputcontroller.cpp @@ -579,7 +579,17 @@ void NotationViewInputController::mousePressEvent(QMouseEvent* event) if (playbackController()->isPlaying()) { if (hitElement) { - playbackController()->seekElement(hitElement); + switch (hitElement->type()) { + case ElementType::NOTE: + case ElementType::REST: + case ElementType::MMREST: + case ElementType::MEASURE: + case ElementType::BAR_LINE: { + playbackController()->seekElement(hitElement); + break; + } + default: break; + } } return; }