use correct scroll duration when invoke animation ended callback.