MCPcopy Create free account
hub / github.com/evolify/dumpfun / onScroll

Function onScroll

common/hooks/table.ts:69–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 const wrapperRef = useRef<HTMLDivElement>(null)
68
69 function onScroll() {
70 if (!tableRef.current) return
71 const table = tableRef.current
72 const rect = table.getBoundingClientRect()
73 if (rect.top < 0) {
74 wrapperRef.current!.style.display = "block"
75 } else {
76 wrapperRef.current!.style.display = "none"
77 }
78 }
79
80 function onTableScroll(e: Event) {
81 if (!fixedHeaderRef.current) return

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected