Add panByAnimated function