Skip to content

[BUG] (ScrollObserver) Container scale causes incorrect offset calculations when container is scrolled #1106

@noeloceros

Description

@noeloceros

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions