Skip to content

Commit c6c3d3d

Browse files
authored
Merge pull request #13 from kakachake/branch-1
inset update
2 parents 24f6c55 + cb8a267 commit c6c3d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function parseValues(elements: TgElement[]) {
9090

9191
// edge = inset
9292
if (edge === 'inset') {
93-
percentage = (scrolled - top) / clientHeight;
93+
percentage = (scrolled - top) / (height - clientHeight);
9494
}
9595

9696
let value: string | number;

0 commit comments

Comments
 (0)