Skip to content

Cannot handle middle-clicks in controller widgets #207

Closed
@Protonull

Description

@Protonull

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions