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

Autoscroll tablature during while playing #10

Merged
merged 2 commits into from
Sep 1, 2024
Merged

Autoscroll tablature during while playing #10

merged 2 commits into from
Sep 1, 2024

Conversation

agourlay
Copy link
Owner

Tackling #7

The implementation is slightly hacky but seems to get the job done.

Looking forward to get feedback on the resulting scroll :)

@agourlay
Copy link
Owner Author

agourlay commented Aug 31, 2024

@VladasZ Could you maybe give this branch a try and tell me how it goes for you :)

let canvas = Canvas::new(self)
.height(vertical_measure_height + FIRST_STRING_Y * 2.0)
.height(self.vertical_measure_height)
Copy link
Owner Author

Choose a reason for hiding this comment

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

avoid recomputing the constant for each redraw

@VladasZ
Copy link

VladasZ commented Aug 31, 2024

Hi! I tried it and the scroll does work. A small thing that bothers me is that it scrolls after each line. In comparison guitar pro scrolls only at the end of the page and in my opinion it is easier to read with such scroll. But still this implementation is much better than no scroll at all and it should be merged and maybe improved later.

Also I found a bug while testing: #11

@agourlay
Copy link
Owner Author

agourlay commented Sep 1, 2024

Thanks a lot for the feedback!

I was able to fix #11

But still this implementation is much better than no scroll at all and it should be merged and maybe improved later.

Also agree with you there 👍

@agourlay agourlay merged commit 261604b into master Sep 1, 2024
6 checks passed
@agourlay agourlay deleted the autoscroll branch September 1, 2024 06:58
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.

2 participants