Skip to content

Remove mousescroll override in modsscreen#921

Merged
gniftygnome merged 1 commit intoTerraformersMC:1.21.11from
SmajloSlovakian:patch-1
Nov 12, 2025
Merged

Remove mousescroll override in modsscreen#921
gniftygnome merged 1 commit intoTerraformersMC:1.21.11from
SmajloSlovakian:patch-1

Conversation

@SmajloSlovakian
Copy link
Copy Markdown
Contributor

@SmajloSlovakian SmajloSlovakian commented Nov 10, 2025

this override isn't needed as it is implemented in net.minecraft.client.gui.ParentElement and it tries to mousescroll over any selectable child, which implements it and is being hovered over.

i recently added a feature to my mod, which makes you be able to scroll in (most) text input field widgets. however, when i tried to scroll in the text field in the modmenu screen, it didn't work. i decided to dig deeper and found this solution.

the issue is very minor and i don't think it will cause as many problems but i had thought of one: users of my mod might change some options in my mod and then try it out on the mods screen search bar and see that it doesn't work and then probably blame me... i doubt that this will happen often, but i just made this pull request to fix this

@gniftygnome
Copy link
Copy Markdown
Contributor

Yes. The vanilla implementation calls it for all hovered elements.

@gniftygnome gniftygnome changed the base branch from 1.21.9 to 1.21.11 November 12, 2025 21:05
@gniftygnome gniftygnome merged commit f72168c into TerraformersMC:1.21.11 Nov 12, 2025
1 check passed
@SmajloSlovakian SmajloSlovakian deleted the patch-1 branch November 12, 2025 21:23
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.

2 participants