How can I compute the X value to properly center my element using translate(x,y)
How can I properly compute the x value to center the box upon clicking in every screen size. I overcomplicate my computation in function renderBoxes
.
How can I properly compute the x value to center the box upon clicking in every screen size. I overcomplicate my computation in function renderBoxes
.