public CustomList(CustomListStyle style, CellRenderer<T> r) { selection = new ArraySelection<T>(items); selection.setActor(this); selection.setRequired(true); cellRenderer = r; setStyle(style); setSize(getPrefWidth(), getPrefHeight()); addListener(new InputListener() { public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { if (pointer == 0 && button != 0) return false; if (selection.isDisabled()) return false; CustomList.this.touchDown(y); return true; } }); }