MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / getPreviewScrollElement

Function getPreviewScrollElement

packages/app-core/src/components/VimNav.tsx:1649–1653  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1647 // ---- Helpers ---------------------------------------------------------
1648
1649 function getPreviewScrollElement(): HTMLElement | null {
1650 return [...document.querySelectorAll<HTMLElement>('[data-preview-scroll]')].find(
1651 (el) => el.getClientRects().length > 0
1652 ) ?? null
1653 }
1654
1655 function getHoverPreviewScrollElement(): HTMLElement | null {
1656 return [...document.querySelectorAll<HTMLElement>('[data-hover-preview-scroll]')].find(

Callers 2

VimNavFunction · 0.85
handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected