Merge "Only set `mEnded` to true if `pulseAnimationFrame` returns true" into main