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

Fixed inverted zooming. #3570

Merged
merged 2 commits into from
Jun 10, 2017
Merged

Conversation

karmux
Copy link
Contributor

@karmux karmux commented May 21, 2017

Fixes #3568.

@@ -1627,11 +1627,11 @@ void AutomationEditor::wheelEvent(QWheelEvent * we )
int x = m_zoomingXModel.value();
if( we->delta() > 0 )
{
x--;
x++;
}
if( we->delta() < 0 )
Copy link
Contributor

Choose a reason for hiding this comment

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

else if( we->delta() < 0 )

Will prevent one useless test when x > 0. I know it's not directly related to this PR, but spotted this so...

}
if( we->delta() < 0 )
{
z++;
z--;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here...

}
if( we->delta() < 0 )
{
z++;
z--;
Copy link
Contributor

Choose a reason for hiding this comment

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

And here too.

@qnebra
Copy link

qnebra commented May 27, 2017

Tested locally, lmms not crashing yet. LMB zoom in, RMB zoom out both on pianoroll and automation editor, and song editor too.

Copy link
Member

@zonkmachine zonkmachine left a comment

Choose a reason for hiding this comment

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

I seem to be the only one bothered by the opposite action of the mouse wheel scrolling when zooming in the editor versus scrolling over the combo box. I'm happy to revert back to the original behaviour since the majority seem to be in favour of it. Code looks fine.

@zonkmachine
Copy link
Member

Merge?

@Umcaruje Umcaruje merged commit ad2c843 into LMMS:stable-1.2 Jun 10, 2017
tresf pushed a commit to liushuyu/lmms that referenced this pull request Jun 12, 2017
* Fixed inverted zooming.

* Prevent useless tests.
@tresf
Copy link
Member

tresf commented Jun 12, 2017

Cherry-picked and ready for master via 2652005.

PhysSong pushed a commit to PhysSong/lmms that referenced this pull request Jul 8, 2017
* Fixed inverted zooming.

* Prevent useless tests.
PhysSong pushed a commit to PhysSong/lmms that referenced this pull request Jul 8, 2017
* Fixed inverted zooming.

* Prevent useless tests.
sdasda7777 pushed a commit to sdasda7777/lmms that referenced this pull request Jun 28, 2022
* Fixed inverted zooming.

* Prevent useless tests.
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.

6 participants