-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #117486: wrong scrolling of 2nd and subsequent pages when playing…
… a multi-page score with vertical page layout
- Loading branch information
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To the extent I understand what is going on here, I believe that adding page->y() here is the real fix to the original problem. It seems the refactoring according to verticalOrientation was just meant as an optimization of some sort, to prevent unnecessary changes vertically in horizontal stacking mode or horizontally in vertical stacking mode? Unfortunately, this is also causing https://musescore.org/en/node/271187. The code just above here is noticing the right edge of the measure off the right edge of screen and trying to fix this by putting left edge up to the left edge of the screen, then depending on the code here to avoid the empty space. While we could revisit the decision to move so far left in the first place, there's a decent chance other cases will arise where the original calculation creates unnecessary empty space to the right, and this code here is needed to prevent that.
On the other hand, I can easily believe there were probably some other nice side effects of the refactoring here. So I am not quite ready to propose reverting this change. But anyhow, I'm working on addressing a bunch of "score jumping" issues, and this is one of them.