This commit is contained in:
Jordan Eldredge 2021-06-29 20:01:11 -07:00
parent 13a6791f84
commit 230524fc7a

View file

@ -88,7 +88,7 @@ export default class Button extends GuiObj {
_bindToDom() {
// TODO: Cleanup!
this._div.addEventListener("mousedown", this._handleMouseDown.bind(this));
this._div.addEventListener("click", (e) => {
this._div.addEventListener("mousedown", (e) => {
if (this._action) {
UI_ROOT.dispatch(this._action);
}