Skip to content

Commit f3980c8

Browse files
committed
fix(drag-drop): disable text selection on draggable element
Disables text selection, touch overlays and the default browser touch actions on draggable items.
1 parent 3255cf3 commit f3980c8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cdk-experimental/drag-drop/drop.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ $cdk-z-index-drag-preview: 1000;
66
left: 0;
77
z-index: $cdk-z-index-drag-preview;
88
}
9+
10+
.cdk-drag,
11+
.cdk-drag-handle {
12+
touch-action: none;
13+
user-select: none;
14+
-webkit-user-drag: none;
15+
-webkit-tap-highlight-color: transparent;
16+
}

0 commit comments

Comments
 (0)