aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/Draggable.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-25 18:55:42 -0400
committerIvan Chen <ivan@tagg.id>2021-05-25 18:55:42 -0400
commit6fd5a5516595d1731af35e1cef9607ce7b32e8f6 (patch)
tree731d5877e8ba05379ab8e327843292d7c4f87125 /src/components/common/Draggable.tsx
parent438ac0d1f82a95367b374b56f9c61a7a5802735c (diff)
More investigation with draggable, Progress
Diffstat (limited to 'src/components/common/Draggable.tsx')
-rw-r--r--src/components/common/Draggable.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/common/Draggable.tsx b/src/components/common/Draggable.tsx
index 1253fed4..15ba3325 100644
--- a/src/components/common/Draggable.tsx
+++ b/src/components/common/Draggable.tsx
@@ -136,7 +136,9 @@ export default function Draggable(props: IProps) {
isDragging.current = false;
if (onDragRelease) {
onDragRelease(e, gestureState);
- onRelease(e, true);
+ }
+ if (onRelease) {
+ onRelease(e, gestureState);
}
if (!shouldReverse) {
pan.current.flattenOffset();
@@ -193,6 +195,7 @@ export default function Draggable(props: IProps) {
listener: handleOnDrag,
useNativeDriver: false,
}),
+ onPanResponderRelease,
// onPanResponderRelease: (_) => {
// // console.log('end');
// // setZIndex(1);