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

Fix middle click drag, and ruler jitter #4318

Merged
merged 4 commits into from
Aug 18, 2021
Merged

Fix middle click drag, and ruler jitter #4318

merged 4 commits into from
Aug 18, 2021

Conversation

JacksonRG
Copy link
Collaborator

@JacksonRG JacksonRG commented Aug 17, 2021

Issues fixed here:

  1. Middle click drag was sending the timeline to 00:00:00,0. I made some changes so that it works relative to the timeline's original position.

  2. The ruler draws a time on every other mark. As you scroll left, it was always starting with the second mark on screen, breaking up the continuous motion of the ruler. I made sure that the ruler always draws times on the same marks, so the scrolling feels continuous.

  3. If you resized the timeline in some way, the ruler wasn't redrawing until you scrolled or zoomed. I added element.width() to the watched variables that calls drawRuler, so that this now causes the ruler to redraw.

@JacksonRG JacksonRG mentioned this pull request Aug 17, 2021
6 tasks
@jonoomph
Copy link
Member

LGTM, other than Codacy issues. Also, let's update the description on this one, and make sure we give enough context into what has been fixed. 👍

@jonoomph
Copy link
Member

Merge away! 🙏 Thx!

@JacksonRG JacksonRG merged commit 235bef1 into develop Aug 18, 2021
@JacksonRG JacksonRG deleted the ruler-fixes branch August 18, 2021 06:46
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