musescore / musescore/MuseScore
Orienting zoom towards the selection doesn't work for list selections
Nobody has claimed this yet.
- 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
(0:00–0:17 in video below)
Normally, when using the zoom in command Ctrl/Cmd + + (or Ctrl/Cmd + =) when either one element or a range is selected, MuseScore Studio attempts to zoom toward the selection, keeping it relatively in the same spot on the canvas where it was when you started zooming.
(0:19–end in video below)
However, when you have a list selection made of at least 2 things, this zoom behavior is ignored—instead, the top-left corner of the first page is the focal point of the zoom.
Ideally, we'd zoom toward the midpoint of all list-selected elements.
Supporting files, videos and screenshots
https://github.com/user-attachments/assets/f51070ef-b549-4cbe-96bf-420c2d122280
In which versions of MuseScore Studio is this issue present?
4.7 nightly
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the Ctrl/Cmd + + (or =) zoom-in command and how it obtains the focal point for a list selection. Reproduce with a list selection of at least two elements; done when zoom centers toward the midpoint of the selected elements rather than the first page’s top-left corner.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100