MCPcopy Create free account
hub / github.com/angular/components / _getDragStartDelay

Method _getDragStartDelay

src/cdk/drag-drop/drag-ref.ts:1505–1515  ·  view source on GitHub ↗

Gets the drag start delay, based on the event type.

(event: MouseEvent | TouchEvent)

Source from the content-addressed store, hash-verified

1503
1504 /** Gets the drag start delay, based on the event type. */
1505 private _getDragStartDelay(event: MouseEvent | TouchEvent): number {
1506 const value = this.dragStartDelay;
1507
1508 if (typeof value === 'number') {
1509 return value;
1510 } else if (isTouchEvent(event)) {
1511 return value.touch;
1512 }
1513
1514 return value ? value.mouse : 0;
1515 }
1516
1517 /** Updates the internal state of the draggable element when scrolling has occurred. */
1518 private _updateOnScroll(event: Event) {

Callers 1

DragRefClass · 0.95

Calls 1

isTouchEventFunction · 0.85

Tested by

no test coverage detected