a tool for shared writing and social publishing

change scroll into view threshold

+1 -1
+1 -1
src/utils/scrollIntoView.ts
··· 10 10 export function scrollIntoView( 11 11 elementId: string, 12 12 scrollContainerId: string = "pages", 13 - threshold: number = 0.2, 13 + threshold: number = 0.9, 14 14 ) { 15 15 const element = document.getElementById(elementId); 16 16 const scrollContainer = document.getElementById(scrollContainerId);