A scroll-direction hook that only re-renders on up/down flips, with a displacement threshold to ignore jitter.
npx shadcn@latest add @zyeon/use-scroll-directionZyeon UI limits how often it can be asked, and useScrollDirection hasn't had its turn. Its source will show here once it has.