Skip to content

Instantly share code, notes, and snippets.

View ttencate's full-sized avatar
🍊

Thomas ten Cate ttencate

🍊
View GitHub Profile
addListener(new InputListener() {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
if (event.getTarget() == DefaultDialog.this && x < 0 || y < 0 || x > getWidth() || y > getHeight()) {
hide();
return true;
}
return false;
}