Skip to content

Commit 9193e2e

Browse files
committed
fix(cdk/drag-drop): add touchstart for mobile
1 parent d0bc928 commit 9193e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/drag-drop/drag-ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ export class DragRef<T = any> {
981981

982982
// when pixel threshold = 0 and dragStartDelay = 0 and a preview container/position exists we immediately drag
983983
if (
984-
event.type == 'mousedown' &&
984+
(event.type == 'mousedown' || event.type == 'touchstart') &&
985985
previewTemplate &&
986986
this._config.dragStartThreshold === 0 &&
987987
this._getDragStartDelay(event) === 0

0 commit comments

Comments
 (0)