-
-
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
Zooming with mouse wheel center #3835
Conversation
…urrent mouse position.
…he SongEditor too.
Hi Premik, thanks for contributing to LMMS, I tested this out and it works well, and the code is by the guidelines, but you should implement this in the automation editor as well, so we have consistent UX over the software. |
Hi Umcaruje, |
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.
Tests fine
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.
@Premik Just tested this, the automation editor logic does not behave as expected and like the other two editors, it's actually quite random:
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.
Right. I retested the PR and found issues. Like @Umcaruje but reversed. Zooming worked well for Automation Editor but not for Piano Roll. I eventually saw the same issues in the Automation Editor but I don't see a pattern in there.
@Umcaruje I've noticed this too. But it is another bug or missfeature which was there before my change. Somehow the automation track doesn't expand to new bars as the control poins are being added (like the other editors do). And if you zoom in a bit more the Automation editor won't let you scroll after the Pattern end (I bet it would be the Bar no. 4 in your case). Try with shift+mouse wheel for example. You can workaround this by expanding the Pattern in the song editor. Maybe a picture would be better. Below the first automation track with the long Pattern is ok. But the second one is dodgy. @zonkmachine Can you provide more details about that Piano Roll issue? |
According to the |
@PhysSong True. The zooming would center to the cursor as far as it is possible to do so. I think that is where the confusion came from. For example when zooming to some bars at the very beginning or very end of a clip those can never be in the middle of the screen (where the mouse would be). For the automation editor I suggest to open separate ticket and not mix it with this one. As those are not related. |
@Umcaruje, this PR shows 2 changes requested. Is there anything remaining before merging? |
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.
Just gave this another go after merging with master and seems to work well, given the above mentioned constraints.
Could have been this I saw. If the rest of you are happy with this then go ahead and merge it. |
Glitch seem to be not related to this PR
Just merged this locally and gave it a try - impressively it's still working fine with no merge conflicts even after 8 months. It's undeniably better than what we have in place right now - I feel we can do whatever further work is needed to improve zoom behavior in the automation editor and piano roll sometime down the road after merging. @Umcaruje Github has this marked as not ready to merge because "Umcaruje requested changes". This is a useful Github feature that I don't want to blow off - but you didn't reply back in November when tresf asked if you were happy to merge it. I'll give you another chance to speak up, otherwise I'm going to merge this in a few days. |
Sorry about this, I completely forgot about this PR. OP’s explanation for the behavior i expirienced is good I’m merging. |
* Horizontal mouse-wheel zooming. Ensure zoom center is always on the current mouse position. * Horizontal zoom using mouse wheel center on the mouse position. For the SongEditor too. * Wheel center on the Automation editor too.
Fixes the #2303