Skip to content

cdk drag: add ability to update internal _activeTransform #18530

@fxck

Description

@fxck

I want to use cdkDrag for the dragging part of a custom scrollbar. But the thing is, the native scroll occurs, I apply transform3d to the custom scrollbar thumb, which is simultaneously the drag handle, now when I try to drag after scroll occurred, those transforms get all messed up.

So ideally I would like to be able to sync those values.

This works:

(this.cdkDragYRef as any)._dragRef._activeTransform.y = this._scrollbarPosition.y;
(this.cdkDragXRef as any)._dragRef._activeTransform.x = this._scrollbarPosition.x;

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis 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