update panning example from master