fix pan animation regression, close #1629