var pointX = pointer.x;
var pointY = pointer.y;
App.graphics.strokeRectShape(new Phaser.Geom.Rectangle(pointX, pointY, 32, 32));
});
But the position is wrong, everytime when you change browser size and game scale is changed mouse position is wrong and rect is drawn on wrong position.
Also when you move camera, position is also wrong.
Hm I updated now to phaser (v3.54.0) and pointerdown doesnt work at all.
Im using DOM for game ui and phaser place div above canvas and that is blocking mouse click.
I tried setTopOnly but its not working. When i move canvas above div, everything is working fine.