Skip to content

bug(drag-drop): cdk-overlay-pane is not scrollable #19555

Description

@MursalovAltun

To reproduce this issue we need to create a material dialog and make it draggable using cdkDrag directive and cdkDragRootElement=".cdk-overlay-pane" applied to the dialog's header.
Therefore in mobile devices we are not able to scroll dialog's content

StackBlitz with the issue - https://stackblitz.com/edit/angular-ivy-nyrwmp

This issue only appears in 9.0.0+ versions.

Expected Behavior

Just drag dialog clicking header

Actual Behavior

Now we are dragging dialog by touching anywhere in the dialog, even by inputs touching

Environment

  • Angular: v9+
  • CDK/Material: v9+
  • Browser(s): Google Chrome Version 83.0.4103.61 (Official Build) (64-bit)
  • Operating System (e.g. Windows, macOS, Ubuntu): Android 7.0

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/drag-drop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions