Skip to content

Scrolling elements into view broken when using scroll-behavior: smooth #28150

Closed
@aKzenT

Description

@aKzenT

Current behavior

Starting with version 13.3, the scrolling of elements into view, triggered e.g. by "click" no longer works when using scroll-behavior: smooth. This causes actionability checks to fail.

We are setting scroll-behavior: smooth directly on the "html" tag.

I noticed that there were some changes done in that area in the 13.3 version which are probably causing the issue.
https://github.com/cypress-io/cypress/pull/27860/files#diff-10c3dbee8439d9d33f63478cc0b81d1e87bf6e50530c3669f159bdf5c97bb7a6

Desired behavior

Scrolling should work as it has worked until version 13.2

Test code to reproduce

no repo, sorry

Cypress Version

13.3

Node version

20.2

Operating System

Windows 11

Debug Logs

No response

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions