Add callback during panning