musescore / musescore/MuseScore

Vertical order of stacked elements is reversed after undoing a move or delete

Open
#32,483 2 comments 0 reactions 1 assignee View on GitHub

@DmitryArefiev is already working on this.

Since Mar 6, 2026.

P2 UX/interaction
Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Description

Issue type

UX/Interaction bug (incorrect behaviour)

Description with steps to reproduce
  1. Add 2 or more text elements to the same beat (easiest to see what happens if you add 4 elements and number them)
  2. Either:
    • Click and drag the measure they belong to to move them somewhere else, or
    • Select the measure and delete its contents
  3. Undo
  4. See that the text elements have swapped positions in the stacking order above the staff

Similar to https://github.com/musescore/MuseScore/issues/29768

Supporting files, videos and screenshots

https://github.com/user-attachments/assets/4d4cf4d7-a0a5-427d-9f09-c6df952df959

In which versions of MuseScore Studio is this issue present?

All since we added click + drag to move

Regression

No.

Operating system

macOS 15

Additional context

No response

Checklist
  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.