Fix coordinates on click due to viewport