properly sets the translation when maximum pan is set