MCPcopy
hub / github.com/codex-team/editor.js / scrollIntoViewIfNeeded

Method scrollIntoViewIfNeeded

src/components/polyfills.ts:103–103  ·  view source on GitHub ↗

* Scrolls the current element into the visible area of the browser window * * @param centerIfNeeded - true, if the element should be aligned so it is centered within the visible area of the scrollable ancestor.

(centerIfNeeded?: boolean)

Source from the content-addressed store, hash-verified

101 * @param centerIfNeeded - true, if the element should be aligned so it is centered within the visible area of the scrollable ancestor.
102 */
103 scrollIntoViewIfNeeded(centerIfNeeded?: boolean): void;
104}
105
106/**

Callers 1

flipCallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected