aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Kim <brian@tagg.id>2021-05-19 15:57:54 -0700
committerBrian Kim <brian@tagg.id>2021-05-19 15:57:54 -0700
commit5ddbf16658a6e3f7bb53e78b821e62190b804cf1 (patch)
treee2937c7138cca99de78426437d4ba13067ffaab9 /src
parenta8f095c734b748b38e2ac50483c41923ab0078f6 (diff)
Save central position
Diffstat (limited to 'src')
-rw-r--r--src/screens/profile/CaptionScreen.tsx6
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}