tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
change scroll into view threshold
awarm.space
5 months ago
1bf9ee10
33609943
+1
-1
1 changed file
expand all
collapse all
unified
split
src
utils
scrollIntoView.ts
+1
-1
src/utils/scrollIntoView.ts
···
10
10
export function scrollIntoView(
11
11
elementId: string,
12
12
scrollContainerId: string = "pages",
13
13
-
threshold: number = 0.2,
13
13
+
threshold: number = 0.9,
14
14
) {
15
15
const element = document.getElementById(elementId);
16
16
const scrollContainer = document.getElementById(scrollContainerId);