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
The forge-provided Slider does not stop when releasing the cursor outside the slider #8485
Comments
The problem here is that the The vanilla I can try to do a PR when I get a little time, but the changes required are:
@Override
protected void onDrag(double mouseX, double mouseY, double dragX, double dragY) {
this.sliderValue = (mouseX - (this.x + 4)) / (float)(this.width - 8);
updateSlider();
}
|
I should also note that removing |
I am currently working on a PR to "fix" this. I created a completely new Slider class and deprecated this one. The new class includes some QoL features which allows for better control of the slider. Will link the PR once done (still gotta do some docs). |
Will be "fixed" once #8496 is merged. |
Minecraft Version: 1.16.5, 1.18.1
Forge Version: 36.2.29, 39.0.88
Steps to Reproduce:
Slider
class (net.minecraftforge.(fml.)client.gui.widget.Slider
)Small mods for ease of reproduction
Description of issue:
When one releases the cursor outside of a slider's box the slider does not stop changing it's value, to stop it from moving one has to again click on the slider. This also allows moving multiple sliders at once.
Video
The text was updated successfully, but these errors were encountered: