Calc correct position in canvas