From eb1b448d0b876b2f4856a308b7e319dffb32d2b5 Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 26 Jan 2020 18:01:53 -0500 Subject: [PATCH] fix: added-typescript-definition --- src/index.tsx | 1 + src/options.ts | 5 +++++ 2 files changed, 6 insertions(+) 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. */