Clicking a settings button when there's a slider under the mouse in the next screen plays the click sound twice
The bug
Clicking a settings button when there's a slider under the mouse in the next screen plays the "click" sound twice.
Example
Here is an example in video: Click button when slider under plays click sound twice.mp4![]()
Additional note
This effect is also created when you push the mouse button down, hearing a click and entering a menu, move the mouse to be on top of a slider, and then releasing. You still get an extra click.
A nice place to demonstrate this is from the Minecraft title screen: move the mouse over the Options button, press down on Left Click, continue to hold down the button while moving the mouse up to the FOV slider, then release. Extra click sound.
Also, strangely, moving the mouse to be over a slider does not produce the extra sound when entering the Video Settings menu, but does work in Options, Music & Sounds, Controls, Chat Settings, and Accessibility Settings.
Code analysis
I'm a minecraft modder, and I accidentally found the source of this bug while making a custom GUI.
The problem is, as Joey mentioned above, because minecraft is coded to play the click sound for sliders on mouse release (see: AbstractSliderButton.java, method onRelease). Because the GUI changes on the mouse press, not release, the GUI elements have changed by the time you are releasing the mouse, resulting in the repeat of the sound. This can be resolved by adding some checks around the playDownSound call to make sure you've actually been manipulating the slider.
– Mekal Covic in this comment
Linked Issues
is duplicated by50
- Fixed
TheBoy358[Mojang] Maxime Lebrot
- 87
- 24
- Confirmed
Normal
- Sound UI
- button click clickEvent cursor gui gui-slider menu mouse music screen slider sound sounds ui
19w11a - 1.19.2
19w11a 19w12b 19w13a 19w13b 19w14a 19w14b 1.14-pre1 1.14-pre2 1.14-pre3 1.14-pre4 1.14-pre5 1.14 1.14.1-pre1 1.14.1-pre2 1.14.1 1.14.2-pre1 1.14.2-pre2 1.14.2-pre3 1.14.2-pre4 1.14.2 1.14.3-pre1 1.14.3-pre2 1.14.3 1.14.4-pre1 1.14.4-pre3 1.14.4-pre4 1.14.4-pre5 1.14.4-pre6 1.14.4 19w34a 19w35a 19w36a 19w37a 19w38b 19w38a 19w39a 19w40a 19w41a 19w42a 19w44a 19w45a 19w45b 19w46a 19w46b 1.15-pre1 1.15-pre2 1.15-pre3 1.15-pre4 1.15-pre5 1.15-pre6 1.15-pre7 1.15 1.15.1 1.15.1-pre1 1.15.2-pre1 1.15.2-pre2 1.15.2 20w06a 20w07a 20w08a 20w09a 20w10a 20w11a 20w12a 20w13a 20w13b 20w14a 20w15a 20w16a 20w17a 20w18a 20w19a 20w20a 20w20b 20w21a 20w22a 1.16-pre1 1.16-pre2 1.16-pre3 1.16-pre5 1.16-pre6 1.16-pre7 1.16-pre8 1.16-rc1 1.16 1.16.1 20w27a 20w28a 20w30a 1.16.2-pre1 1.16.2-rc1 1.16.2-rc2 1.16.2 1.16.3-rc1 1.16.3 1.16.4-pre1 1.16.4-pre2 1.16.4-rc1 1.16.4 20w45a 20w46a 20w48a 20w49a 20w51a 21w03a 1.16.5 21w05a 21w05b 21w06a 21w07a 21w11a 1.17-pre2 1.17.1 21w43a 21w44a 1.18-pre1 1.18-pre2 1.18-rc1 1.18.1 22w03a 22w05a 1.18.2 22w11a 22w15a 22w16b 1.19-pre2 1.19-pre4 1.19 1.19.1-pre1 1.19.2- 22w42a
Created Issue:
Clicking in the "Music & sounds" plays the click sound by twice.
Clicking in the "Music & sounds"plays the click soundby twice.Releasing the mouse over a slider plays the click sound
relates to
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
Releasing the mouse over a sliderplays the click soundClicking a settings button when there's a slider under the mouse in the next screen plays the click sound twice
is duplicated by
is duplicated by
relates to
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
relates to
relates to
is duplicated by
is duplicated by
is duplicated by
is duplicated by
The bug
Clicking in the Music & Sounds menu plays the click sound by twice. This seems to affect all sliders except those in the Video Settings menu.
Example
Here is an example in video: Click button when slider under plays click sound twice.mp4
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
relates to
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
The bug
Clicking in the Music & Sounds menu plays the click sound by twice. This seems to affect all sliders except those in the Video Settings menu.
Example
Here is an example in video: Click button when slider under plays click sound twice.mp4
The bug
Clicking a settings button when there's a slider under the mouse in the next screen plays the "click" sound twice.
Example
Here is an example in video: Click button when slider under plays click sound twice.mp4
is duplicated by
The bug
Clicking a settings button when there's a slider under the mouse in the next screen plays the "click" sound twice.
Example
Here is an example in video: Click button when slider under plays click sound twice.mp4
Additional note
This effect is also created when you push the mouse button down, hearing a click and entering a menu, move the mouse to be on top of a slider, and then releasing. You still get an extra click.
A nice place to demonstrate this is from the Minecraft title screen: move the mouse over the Options button, press down on Left Click, continue to hold down the button while moving the mouse up to the FOV slider, then release. Extra click sound.
Also, strangely, moving the mouse to be over a slider does not produce the extra sound when entering the Video Settings menu, but does work in Options, Music & Sounds, Controls, Chat Settings, and Accessibility Settings.
is duplicated by
MC-192194
Confirmed in 1.16.3
is duplicated by
is duplicated by
The bug
Clicking a settings button when there's a slider under the mouse in the next screen plays the "click" sound twice.
Example
Here is an example in video: Click button when slider under plays click sound twice.mp4
Additional note
This effect is also created when you push the mouse button down, hearing a click and entering a menu, move the mouse to be on top of a slider, and then releasing. You still get an extra click.
A nice place to demonstrate this is from the Minecraft title screen: move the mouse over the Options button, press down on Left Click, continue to hold down the button while moving the mouse up to the FOV slider, then release. Extra click sound.
Also, strangely, moving the mouse to be over a slider does not produce the extra sound when entering the Video Settings menu, but does work in Options, Music & Sounds, Controls, Chat Settings, and Accessibility Settings.
Code analysis
I'm a minecraft modder, and I accidentally found the source of this bug while making a custom GUI.
The problem is, as Joey mentioned above, because minecraft is coded to play the click sound for sliders on mouse release (see: AbstractSliderButton.java, method onRelease). Because the GUI changes on the mouse press, not release, the GUI elements have changed by the time you are releasing the mouse, resulting in the repeat of the sound. This can be resolved by adding some checks around the playDownSound call to make sure you've actually been manipulating the slider.– Mekal Covic in this comment
is duplicated by
Confirmed in 20w27a
is duplicated by
MC-192194
is duplicated by
is duplicated by
Still a problem in 1.18.2 can't believe mojang can't fix this tiny problem
See MC-145748. This happens every time you release the mouse button while hovering above a slider.
Thank you for your report!
We're actually already tracking this issue at MC-145748, so we will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Duplicate of MC-145748
Duplicate of MC-145748
Duplicate of MC-145748
Duplicate of MC-145748
Please don't continue to update the affect versions list for this ticket. It's a duplicate of MC-145748.
Duplicate of MC-145748. Also, are you using Discord? Its overlay might cause issues like needing to click more than once.
Duplicate of MC-145748
Duplicate of MC-145748
Thanks for the report; however this is a duplicate of MC-145748.
Duplicate of MC-145748
Thank you for your report!
We're actually already tracking this issue in MC-145748, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
This ticket has been resolved as a duplicate, hence no longer needs to be updated. Please follow MC-145748 instead.
Duplicates MC-145748.
Duplicate of MC-145748
Thank you for your report!
We're already tracking this issue at MC-145748, so I will resolve and link this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
However, this issue is a Duplicate of MC-145748.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
We're actually already tracking this issue in MC-145748, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
We're actually already tracking this issue in MC-145748, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
We're actually already tracking this issue in MC-145748, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
We're actually already tracking this issue in MC-145748, so I've resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
We're actually already tracking this issue in MC-145748, so I've resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
We're actually already tracking this issue in MC-145748, so I resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
However, this issue is a Duplicate of MC-145748.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-145748.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
This is a duplicate of MC-145748
Thanks for the well-written report, we're tracking this in MC-145748
Duplicates MC-145748
Seems to be a duplicate of MC-145748.
Thank you for your report!
We're tracking this issue in MC-145748, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
– I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Thank you for your report!
We're tracking this issue in MC-145748, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Thank you for your report!
We're tracking this issue in MC-145748, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

This seems to affect all sliders except those in the "Video Settings" menu.
Can confirm this bug!
Click button when slider under plays click sound twice.mp4
Still in 1.14 Release
Still in 1.14.1 Release
Still in 1.14.2 Pre-Release 2
Noticed that this can happen on any slider. You can click in empty space, don't let go of the mouse click button, then move the cursor over a slider, then let go. It will play a click sound but nothing will happen.
Tested on 1.14.2 Release. Windows 10, Java edition.
This is still an issue in 1.15 prerelease 6. Please fix before 1.15.
fix this now you are too late and still in 1.15
and 20w06a
Still in 20w09a
Still in 20w10a
can conferm still present as up to 1.16 20w20b
Exist if you click "Chat settings" (for me)
I'm making a mod of beta 1.7.3 (MCP) and when I was adding the GUI code from 1.16, I noticed the existence of this bug. Well, that's not important. The important part is that I found the way to fix it and I decided to share it (the code):
1- Add a boolean to net.minecraft.client.gui.components.AbstractSliderButton, in my case:
"private boolean wasClicked = false;"
2- Then go to the method "void onClick(double, double)" and write "this.wasClicked = true;" in the last line of the method.
3- Remove all the operations of the method "void onRelease(double, double)" and add this:
if (this.wasClicked)
{
super.playDownSound(Minecraft.getInstance().getSoundManager());
this.wasClicked = false;
}
Also confirming, still present in 1.16.1.
I might add that this effect is also created when you push the mouse button down, hearing a click and entering a menu, move the mouse to be on top of a slider, and then releasing. You still get an extra click. A nice place to demonstrate this is from the Minecraft title screen: move the mouse over the Options button, press down on Left Click, continue to hold down the button while moving the mouse up to the FOV slider, then release. Extra click sound.
EDIT: Strangely, moving the mouse to be over a slider does not produce the extra sound when entering the Video Settings menu, but does work in Options, Music & Sounds, Controls, Chat Settings, and Accessibility Settings.
yea that not right
I can confirm that this is also present in 1.16.4 and in snapshot 20w45a.
Can confirm in 1.17.1.
I'm a minecraft modder, and I accidentally found the source of this bug while making a custom GUI.
The problem is, as Joey mentioned above, because minecraft is coded to play the click sound for sliders on mouse release (see: AbstractSliderButton.java, method onRelease). Because the GUI changes on the mouse press, not release, the GUI elements have changed by the time you are releasing the mouse, resulting in the repeat of the sound. This can be resolved by adding some checks around the playDownSound call to make sure you've actually been manipulating the slider.
Alternatively, the buttons could simply activate on mouse release instead of on mouse click. That would be more consistent with most other UIs anyway.
Hi Fabian,
The buttons already play sound on onRelease. The lack of checks around this is the reason this issue exists.
With "activate", I meant the button action, like opening the next menu. The only reason you "release" the sound option button for example is because it disappears because it already switched to the next menu, even though the mouse is still held.
Still in 1.18. pre-1
Affects 1.18.1
(The "Music & Sound" button worked for me)
Still in 22w03a
Can confirm for 22w05a
Can confirm in 1.18.2.
Still in 1.19-pre4
Can confirm in 1.19.
Can confirm in 1.19.2.