pan_viewport method in class