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

Cannot handle middle-clicks in controller widgets #207

Open
Protonull opened this issue Sep 6, 2024 · 0 comments
Open

Cannot handle middle-clicks in controller widgets #207

Protonull opened this issue Sep 6, 2024 · 0 comments

Comments

@Protonull
Copy link
Contributor

Since yacl displays options within a list, and dev.isxander.yacl3.gui.ElementListWidgetExt overrides boolean isValidMouseClick(int) to accept left clicks and right clicks, but not middle clicks. This could be remedied with:

/*? if >1.20.1 {*/
@Override
/*?}*/
protected boolean isValidMouseClick(int button) {
    return button == InputConstants.MOUSE_BUTTON_LEFT
        || button == InputConstants.MOUSE_BUTTON_RIGHT
        || button == InputConstants.MOUSE_BUTTON_MIDDLE;
}
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

No branches or pull requests

1 participant