From 763a50692f39074a2cc264df347bccd43bcd79a7 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Fri, 15 Sep 2023 14:01:44 -0700
Subject: Readd hitslop to post controls (#1461)

* Readd hitslop to post controls

* Bigger hitslop on bigger controls
---
 src/view/com/util/post-ctrls/RepostButton.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/view/com/util/post-ctrls/RepostButton.tsx')

diff --git a/src/view/com/util/post-ctrls/RepostButton.tsx b/src/view/com/util/post-ctrls/RepostButton.tsx
index 374d06515..9c4ed8e5d 100644
--- a/src/view/com/util/post-ctrls/RepostButton.tsx
+++ b/src/view/com/util/post-ctrls/RepostButton.tsx
@@ -6,6 +6,7 @@ import {useTheme} from 'lib/ThemeContext'
 import {Text} from '../text/Text'
 import {pluralize} from 'lib/strings/helpers'
 import {useStores} from 'state/index'
+import {HITSLOP_10, HITSLOP_20} from 'lib/constants'
 
 interface Props {
   isReposted: boolean
@@ -50,7 +51,8 @@ export const RepostButton = ({
       accessibilityLabel={`${
         isReposted ? 'Undo repost' : 'Repost'
       } (${repostCount} ${pluralize(repostCount || 0, 'repost')})`}
-      accessibilityHint="">
+      accessibilityHint=""
+      hitSlop={big ? HITSLOP_20 : HITSLOP_10}>
       <RepostIcon
         style={
           isReposted
-- 
cgit 1.4.1

