mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(drag-drop): disable text selection on draggable element (#12204)
This commit is contained in:
committed by
Joey Perrott
parent
56bce47c34
commit
eee1e7dca0
@@ -6,3 +6,18 @@ $cdk-z-index-drag-preview: 1000;
|
||||
left: 0;
|
||||
z-index: $cdk-z-index-drag-preview;
|
||||
}
|
||||
|
||||
.cdk-drag,
|
||||
.cdk-drag-handle {
|
||||
touch-action: none;
|
||||
-webkit-user-drag: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
|
||||
// stylelint-disable material/no-prefixes
|
||||
// normally we have a mixin for these, but it's in material/core.
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
// stylelint-enable material/no-prefixes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user