Primitives / foldkit-primitives/dom

EdgeScroll

const · packages/primitives/src/dom/edge-scroll.ts:8

const EdgeScroll: Schema.Struct<{
  readonly edge: Schema.optionalKey<Schema.Number>
  readonly speed: Schema.optionalKey<Schema.Number>
}>

Its type

type EdgeScroll = typeof EdgeScroll.Type

Scrolling the nearest scrolling ancestor while a pointer is held near its edge, so a drag or a lasso reaches what is out of view. An empty struct takes the defaults.