support mobile

This commit is contained in:
koneko 2025-01-08 20:54:47 +01:00
parent 8ccd33d2b0
commit 30a9ca32a0

View File

@ -34,7 +34,7 @@ export class Cell extends GameObject {
this.clickDetector.rect(0, 0, this.bb.width, this.bb.height); this.clickDetector.rect(0, 0, this.bb.width, this.bb.height);
this.clickDetector.fill({ color: 0xff0000, alpha: 0 }); this.clickDetector.fill({ color: 0xff0000, alpha: 0 });
this.container.addChild(this.clickDetector); this.container.addChild(this.clickDetector);
this.clickDetector.onclick = (e) => { this.clickDetector.onpointerdown = (e) => {
Globals.Grid._gridCellClicked(row, column); Globals.Grid._gridCellClicked(row, column);
}; };