a tool for shared writing and social publishing
Something went wrong. Try again.
1234567891011import { scrollIntoViewIfNeeded } from "./scrollIntoViewIfNeeded";
export function scrollIntoView( elementId: string, scrollContainerId: string = "pages", threshold: number = 0.9,) { const element = document.getElementById(elementId); scrollIntoViewIfNeeded(element, false, "smooth");}