Describe the bug
Scale is incorrectly being applied to the distance the container is scrolled when calculating offsets.
Provide a minimal reproduction demo of the bug
In this example, if you scroll down a bit, and then resize the window slightly (to cause the offsets to be recalculated), you'll notice the animation on the purple squer jump to a different point in its timeline. If you continue scrolling, you'll see the animation start and end in the wrong places.
MacOS 15.6.1 (24G90)
Chrome Version 141.0.7390.56 (Official Build) (arm64)