Dynamic set animation time with panGesture