Primitives / foldkit-primitives/dom

canScroll

function · packages/primitives/src/dom/swipe.ts:99

function canScroll(
  target: Element,
  root: Element,
  axis: 'x' | 'y',
  along: number,
): boolean

Whether anything from target up to root can still scroll along axis the way a finger moving along (positive is down or right) pulls it: a finger going down scrolls content toward its start.