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

Qt: Fix SnapSlider in settings #10933

Merged
merged 1 commit into from Sep 26, 2021
Merged

Qt: Fix SnapSlider in settings #10933

merged 1 commit into from Sep 26, 2021

Conversation

Megamouse
Copy link
Contributor

The SnapSlider function is used to snap the current slider to certain values if modified with the mouse.
But it only triggered if the user was dragging the handle of the slider and not if the bar itself was clicked.

This is fixed by using an eventFilter that listens for mousepress and mouserelease events instead of the sliderPressed and sliderReleased signals.
Maybe this is a Qt bug, but I don't want to bother with reporting this right now.

fixed #10932

The SnapSlider function is used to snap the current slider to certain values if modified with the mouse.
But it only triggered if the user was dragging the handle of the slider and not if the bar itself was clicked.

This is fixed by using an eventFilter that listens for mousepress and mouserelease events instead of the sliderPressed and sliderReleased signals.
Maybe this is a Qt bug, but I don't want to bother with reporting this right now.
@Megamouse Megamouse merged commit b217e83 into RPCS3:master Sep 26, 2021
@Nicholas-Steel
Copy link

This does solve the problem, but makes the behaviour a little odd when moving the mouse while the Slider is moving. It makes the Slider suddenly jump multiple steps and then ignore you holding the mouse button.

@Megamouse
Copy link
Contributor Author

It's behaving the same way on the last version.
Just learn how to use a slider properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolution Scale (Disable Strict Mode) can be adjusted by an amount other than 25%
2 participants