Primitives / foldkit-primitives/dom

pointedLinks

function · packages/primitives/src/dom/pointed-links.ts:17

function pointedLinks(options?: {
  readonly rest?: Duration.Input
}): Stream.Stream<Url>

The address of the link a reader means to follow, on the page's own origin: for a Data.preload before they go (Site.routing's preload). A pointer or focus counts once it has rested on a link for rest (50 ms unless given), and leaving first cancels it, so a pointer sweeping a list reads one page, not every page it crosses. A finger counts at once: the tap that follows is the navigation. Crossing the elements inside a link is staying on it. A link with data-preload="none" is never read. Without a document the stream is empty.