Skip to content

bug(cdkDrag): Issue scrolling/reordering "reversed" lists #30191

Open
@michaelurban

Description

@michaelurban

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

For design/UX reasons, I'm using cdk/drag-drop on a list with flex-direction: row-reverse applied. Scrolling does not trigger while dragging among other issues.

Can we get a "reversed" option to support this use case?

Reproduction

Steps to reproduce:`

  1. Apply display: flex; flex-direction: row-reverse; to a cdkDropList
  2. Try to drag+scroll an element

Expected Behavior

It would be nice if indexes and scroll behavior could work intuitively by adding a reversed option

Actual Behavior

The drag will not scroll the cdkDropList

Environment

  • Angular: v19.0.0
  • CDK/Material: v19.0.0
  • Browser(s): All
  • Operating System: Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: cdk/drag-dropfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions