aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/Draggable.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/common/Draggable.tsx')
-rw-r--r--src/components/common/Draggable.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/common/Draggable.tsx b/src/components/common/Draggable.tsx
index 15ba3325..0a480e92 100644
--- a/src/components/common/Draggable.tsx
+++ b/src/components/common/Draggable.tsx
@@ -60,6 +60,7 @@ interface IProps {
maxX?: number;
maxY?: number;
onDragStart?: () => number;
+ measureAdd?: () => void;
}
export default function Draggable(props: IProps) {
@@ -90,6 +91,7 @@ export default function Draggable(props: IProps) {
maxX,
maxY,
onDragStart,
+ measureAdd,
} = props;
// The Animated object housing our xy value so that we can spring back
@@ -139,6 +141,7 @@ export default function Draggable(props: IProps) {
}
if (onRelease) {
onRelease(e, gestureState);
+ measureAdd();
}
if (!shouldReverse) {
pan.current.flattenOffset();