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

Method _getViewportScrollPosition

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

Gets the scroll position of the viewport.

()

Source from the content-addressed store, hash-verified

1546
1547 /** Gets the scroll position of the viewport. */
1548 private _getViewportScrollPosition() {
1549 return (
1550 this._parentPositions.positions.get(this._document)?.scrollPosition ||
1551 this._parentPositions.getViewportScrollPosition()
1552 );
1553 }
1554
1555 /**
1556 * Lazily resolves and returns the shadow root of the element. We do this in a function, rather

Callers 2

Calls 2

getMethod · 0.65

Tested by

no test coverage detected