Smooths panning and fixes max bounds