Skip to content

Commit

Permalink
Merge pull request #19397 from mathesoncalum/13440-limit_clickable_pl…
Browse files Browse the repository at this point in the history
…ayback
  • Loading branch information
cbjeukendrup authored Sep 17, 2023
2 parents 0891a47 + f033ba7 commit eff81f3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/notation/view/notationviewinputcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit eff81f3

Please sign in to comment.