which fed into animation code to move the photo display to a specific geometric position to center the next photo (an algorithm) starting from a certain speed, given how fast you swiped (another algorithm),
I never thought about this. Keeping up the illusion of responsiveness is in the details. This would be so weird if i swiped fast but the animation was slow.