I noticed that the hitbox on some buttons where misaligned, and after some testing, I found out it had to do with setting css padding. (Here a demo, showcasing the error). The Hitbox should be only on the red square, but the hitbox is more or less inside of the yellow square. Is this really an error, or did I do something wrong?
How could I prevent this?
I couldn’t find nothing in the github issues.
(Phaser Version 3.81)