Skip to content

Conversation

@cbjeukendrup
Copy link
Member

Resolves: #27101

It improves the situation, but it won't be perfect yet, and I suspect that's because of the ldata->moveY in Autoplace::rebaseOffset, because we're unable to adjust the initOffset accordingly.

Probably wouldn't ever cause problems in practice, but still...
Otherwise, when dragging between systems, the element jumps around vertically.
@mike-spa mike-spa merged commit 31547e2 into musescore:master Apr 1, 2025
11 checks passed
Jojo-Schmitz added a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 1, 2025
Probably wouldn't ever cause problems in practice, but still...

Backport of musescore#27480, commit 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 1, 2025
Probably wouldn't ever cause problems in practice, but still...

Backport of musescore#27480, commit 1
Jojo-Schmitz pushed a commit to Jojo-Schmitz/MuseScore that referenced this pull request Apr 1, 2025
Probably wouldn't ever cause problems in practice, but still...

Backport of musescore#27480, commit 1
@cbjeukendrup cbjeukendrup deleted the dragging_across_systems_goes_wild branch April 1, 2025 09:58
@cbjeukendrup
Copy link
Member Author

Wouldn't this have needed testing before merging?

if (y < y2) {
systems.push_back(s);
for (size_t iii = i + 1; ii < n; ++iii) {
for (size_t iii = i + 1; iii < n; ++iii) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even without thinking through the code, this much seems like a straight up bug fix, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I don't think it has any effect because the break below would be hit.

@MarcSabatella
Copy link
Contributor

This does fix the random-seeming behavior when dragging more than a small amount, where the text would suddenly attach to the top of the page or somewhere else. So now it appears to work as designed.

I would still prefer we simply disable the reanchoring across systems, as it's rarely what someone is trying to do in dragging text. In crowded lead sheets or instrument parts, we're still likely to see complaints, as it is not at all uncommon that someone might be trying to place a rehearsal mark above one staff and have it be physically closer to the staff above. That should be possible without needing to know about Alt+drag (or using keyboard adjustments).

But if disabling the reanchor across systems not a viable option, then this is definitely a huge improvement, so thanks!

RomanPudashkin pushed a commit to RomanPudashkin/MuseScore that referenced this pull request Apr 10, 2025
…systems_goes_wild

Improve behaviour when dragging elements between systems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text Notes and Rehearsal Marks (sometimes jump around when moving on page with many systems)

3 participants