Skip to content
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

Issue 6340: wrong vertical scroll recording to new track... #6345

Merged

Conversation

Paul-Licameli
Copy link
Collaborator

@Paul-Licameli Paul-Licameli commented Apr 25, 2024

... Solution is to delay the scrolling until after TrackListEvent subscriptions fire and update the cumulative ChannelView heights.

Resolves: #6340

(short description of the changes and the motivation to make the changes)

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

... Solution is to delay the scrolling until after TrackListEvent subscriptions
fire and update the cumulative ChannelView heights.
@Paul-Licameli Paul-Licameli added the bug An error, undesired behaviour, or missed functionality label Apr 25, 2024
@Paul-Licameli Paul-Licameli self-assigned this Apr 25, 2024
Viewport::Get(project).ShowTrack(**trackList.rbegin());
if (!trackList.empty()) {
BasicUI::CallAfter([pProject = project.weak_from_this()]{
if (!pProject.expired()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

if (auto project = pProject.lock())
...

Copy link
Contributor

@crsib crsib left a comment

Choose a reason for hiding this comment

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

I would prefer to see if written differently, I don't have to strong opinion in this case.

@LWinterberg LWinterberg merged commit 3fdfa8f into audacity:master Apr 29, 2024
11 checks passed
@Paul-Licameli Paul-Licameli deleted the Fix-vertical-scroll-when-recording branch April 29, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error, undesired behaviour, or missed functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When recording to a new track, the track area doesn't automatically scroll up to show the new track in full.
3 participants