-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing scroll back when stop in Song Editor #2423
Conversation
a95909e
to
f4f6551
Compare
@midi-pascal I tested this one out. It now scrolls back to the beginning to the song editor, but regardless if autoscroll is on or off. I think that the song editor shouldn't scroll back when autoscroll is off. |
@Umcaruje Oups! I will check that. |
@Umcaruje I tested this and I think my patch works correctly since the stetting that allow to scroll back - or not - is designed to act when stopping the play back.
So I think the way it works with my patch is OK unless I misunderstood something in the way the scroll back should work. |
@Umcaruje do you agree? If so we can merge. If not, we should fix. Scrollback behavior has been less than ideal for a very long time, this would be a nice fix to see for 1.2. 👍 |
@Umcaruje Any advice on my explanation? This PR would be nice for 1.2 IMHO 😉 |
Sorry, I overlooked the mail. My opinion is that when autoscroll is off, the song editor should never scroll, in any case. What autoscroll really means is 'follow the playhead'. And as a user, when I turn it off, I expect that the song editor never scrolls back to where the playhead is, regardless of its behavior.
The thing is, those buttons alter how the playhead behaves, and not the song editor. It should be independent. |
@Umcaruje I think I found the proper fix to avoid unwanted Song Editor scrolling. As usual, your feedback is very welcome 😄 |
@midi-pascal this now works as expected 👍 Though, here's a thing that's inconsistent (this is nitpicking though): With autoscroll on, when I press stop, it does not scroll back smoothly, as it does when e.g. I move the timeline, and then press play with the playhead at the beginning. You have to enable smooth scrolling from the performance menu in the settings for this. |
@Umcaruje So... I think this new fix should do the trick for Smooth Scroll. I tried all the the test cases I could think of and it seems OK to me. (no scroll, "hard" scroll, smooth scroll, and all the combinations with the "were to scroll or not"). |
pixelsPerTact() ), | ||
0 ); | ||
animateScroll( m_leftRightScroll, t.getTact(), m_smoothScroll ); | ||
animateScroll( m_leftRightScroll, _t.getTact(), m_smoothScroll ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This underscored function parameter should be renamed to just t
, as that is no longer a coding convention.
Ok, tested this out, works perfectly 👍 Great work. You just need to adress that one styling remark, and this'll be good to merge. |
@Umcaruje Being at it, I removed the leading underscores throughout the SongEditor fonctions parameters so it is done once for all. 😉 |
} | ||
} | ||
|
||
|
||
|
||
|
||
void SongEditor::wheelEvent( QWheelEvent * _we ) | ||
void SongEditor::wheelEvent(QWheelEvent * we ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove the space here?
👍 |
@Umcaruje Sorry, my Qt Creator settings did that while refactoring. Spaces are back now. 😃 |
@Umcaruje So? |
Ok, did a last test, all looks good. Merging. 👍 |
Thanks for your work on this @midi-pascal 👍 |
fixes #2145 via meta-issue 2291
Make the Song Editor scroll back to the beginning of song or to the time line position depending on what is selected with the 3 states stop button.