diff --git a/src/index.tsx b/src/index.tsx index 49c6bb1e..60e0d86f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -59,6 +59,7 @@ export class Modalize extends React.C closeAnimationConfig: { timing: { duration: 280, easing: Easing.ease }, }, + dragToss: 0.05, }; private snaps: number[] = []; diff --git a/src/options.ts b/src/options.ts index f1e062d6..cf1d7622 100644 --- a/src/options.ts +++ b/src/options.ts @@ -36,6 +36,11 @@ export interface IProps { */ children?: React.ReactNode; + /** + * A number that determines the determines the momentum of the scroll required. + */ + dragToss?: number; + /** * A number that will enable the snapping feature and create an intermediate point before opening the modal to full screen. */