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

Method _isOverContainer

src/cdk/drag-drop/drop-list-ref.ts:676–678  ·  view source on GitHub ↗

* Checks whether the user's pointer is positioned over the container. * @param x Pointer position along the X axis. * @param y Pointer position along the Y axis.

(x: number, y: number)

Source from the content-addressed store, hash-verified

674 * @param y Pointer position along the Y axis.
675 */
676 _isOverContainer(x: number, y: number): boolean {
677 return this._domRect != null && isInsideClientRect(this._domRect, x, y);
678 }
679
680 /**
681 * Figures out whether an item should be moved into a sibling

Callers 2

_cleanupDragArtifactsMethod · 0.80

Calls 1

isInsideClientRectFunction · 0.90

Tested by

no test coverage detected