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

Method _sortFromLastPointerPosition

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

Updates the item's sort order based on the last-known pointer position.

()

Source from the content-addressed store, hash-verified

698
699 /** Updates the item's sort order based on the last-known pointer position. */
700 _sortFromLastPointerPosition() {
701 const position = this._lastKnownPointerPosition;
702
703 if (position && this._dropContainer) {
704 this._updateActiveDropContainer(this._getConstrainedPointerPosition(position), position);
705 }
706 }
707
708 /** Unsubscribes from the global subscriptions. */
709 private _removeListeners() {

Callers 2

updateOnScrollMethod · 0.80
updateOnScrollMethod · 0.80

Tested by

no test coverage detected