Prevent the animation from taking more than 3 seconds
Prevent the animation from taking more than 3 seconds

If velocity was close to zero when the panning ended then the duration could become very, very long.

Boerworz/NightModeTransition