Skip to content

fr(cdk/drag-drop): support configurable propagation of mousedown and touchstart events #19333

Closed
@lincolnthree

Description

@lincolnthree

Feature Description

Allow exposing native mousedown and touchstart events to parent elements such that listeners farther up the chain can respond before a CdkDragEvent has started. Without these events, certain gestures (swiper, etc) cannot be achieved when events are started on a DragRef element, as drag-drop effectively swallows them whether they are used or not.

This feature should be enabled only if desired using the CDK_DRAG_CONFIG InjectionToken / provider pattern.

Use Case

Allow propagation of events to parent components in the DOM. Example: Using a cdkDragDrop component inside a horizontal swiper, where the native element's scroll direction is vertical.

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: cdk/drag-drop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions