diff options
author | Brian Kim <brian@tagg.id> | 2021-05-19 15:57:54 -0700 |
---|---|---|
committer | Brian Kim <brian@tagg.id> | 2021-05-19 15:57:54 -0700 |
commit | 5ddbf16658a6e3f7bb53e78b821e62190b804cf1 (patch) | |
tree | e2937c7138cca99de78426437d4ba13067ffaab9 | |
parent | a8f095c734b748b38e2ac50483c41923ab0078f6 (diff) |
Save central position
-rw-r--r-- | src/screens/profile/CaptionScreen.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/screens/profile/CaptionScreen.tsx b/src/screens/profile/CaptionScreen.tsx index 309701b5..bd715a53 100644 --- a/src/screens/profile/CaptionScreen.tsx +++ b/src/screens/profile/CaptionScreen.tsx @@ -164,7 +164,11 @@ const CaptionScreen: React.FC<CaptionScreenProps> = ({route, navigation}) => { /> <Draggable x={dim[0] / 2 - curStart[0] / 2 + offset[0]} - y={offset[1] + dim[1] / 2 - curStart[1] / 2}> + y={offset[1] + dim[1] / 2 - curStart[1] / 2} + minX={offset[0]} + minY={offset[1]} + maxX={dim[0] + offset[0] + curStart[0] / 2} + maxY={dim[1] + offset[1] + curStart[1]}> <TaggDraggable draggable={true} minX={0} |