diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-26 18:19:23 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-05-26 18:19:23 -0400 |
commit | 2fa874efdc5d1b2a1cd508c46ddcc6e2e7511157 (patch) | |
tree | 5a33cea2fb4c8698e4514ca58027ec5da4dd92b5 /src/components/common/Draggable.tsx | |
parent | 716caad656f8435f93a33596692e7e83f0a2af12 (diff) |
Cleanup draggable, Pass ref to each draggable
Diffstat (limited to 'src/components/common/Draggable.tsx')
-rw-r--r-- | src/components/common/Draggable.tsx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/components/common/Draggable.tsx b/src/components/common/Draggable.tsx index 0a480e92..15ba3325 100644 --- a/src/components/common/Draggable.tsx +++ b/src/components/common/Draggable.tsx @@ -60,7 +60,6 @@ interface IProps { maxX?: number; maxY?: number; onDragStart?: () => number; - measureAdd?: () => void; } export default function Draggable(props: IProps) { @@ -91,7 +90,6 @@ export default function Draggable(props: IProps) { maxX, maxY, onDragStart, - measureAdd, } = props; // The Animated object housing our xy value so that we can spring back @@ -141,7 +139,6 @@ export default function Draggable(props: IProps) { } if (onRelease) { onRelease(e, gestureState); - measureAdd(); } if (!shouldReverse) { pan.current.flattenOffset(); |