fix(frontend): deduplicate live workflow activity
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export function isNearBottom(
|
||||
el: Pick<HTMLElement, "scrollHeight" | "clientHeight" | "scrollTop">,
|
||||
threshold = 48,
|
||||
): boolean {
|
||||
return el.scrollHeight - el.clientHeight - el.scrollTop <= threshold;
|
||||
}
|
||||
Reference in New Issue
Block a user