8 lines
397 B
TypeScript
8 lines
397 B
TypeScript
import { LimitType } from './Limit';
|
|
export type ScrollContainOptionType = false | 'trimSnaps' | 'keepSnaps';
|
|
export type ScrollContainType = {
|
|
snapsContained: number[];
|
|
scrollContainLimit: LimitType;
|
|
};
|
|
export declare function ScrollContain(viewSize: number, contentSize: number, snapsAligned: number[], containScroll: ScrollContainOptionType, pixelTolerance: number): ScrollContainType;
|