ScrollBounds.d.ts 526 B

12345678910
  1. import { LimitType } from './Limit';
  2. import { ScrollBodyType } from './ScrollBody';
  3. import { Vector1DType } from './Vector1d';
  4. import { PercentOfViewType } from './PercentOfView';
  5. export type ScrollBoundsType = {
  6. shouldConstrain: () => boolean;
  7. constrain: (pointerDown: boolean) => void;
  8. toggleActive: (active: boolean) => void;
  9. };
  10. export declare function ScrollBounds(limit: LimitType, location: Vector1DType, target: Vector1DType, scrollBody: ScrollBodyType, percentOfView: PercentOfViewType): ScrollBoundsType;