From 763a50692f39074a2cc264df347bccd43bcd79a7 Mon Sep 17 00:00:00 2001 From: Paul Frazee 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/PostCtrls.tsx | 7 +++++-- src/view/com/util/post-ctrls/RepostButton.tsx | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/view/com/util/post-ctrls/PostCtrls.tsx b/src/view/com/util/post-ctrls/PostCtrls.tsx index c71100df0..5769a478b 100644 --- a/src/view/com/util/post-ctrls/PostCtrls.tsx +++ b/src/view/com/util/post-ctrls/PostCtrls.tsx @@ -15,6 +15,7 @@ import {useTheme} from 'lib/ThemeContext' import {useStores} from 'state/index' import {RepostButton} from './RepostButton' import {Haptics} from 'lib/haptics' +import {HITSLOP_10, HITSLOP_20} from 'lib/constants' interface PostCtrlsOpts { itemUri: string @@ -106,7 +107,8 @@ export function PostCtrls(opts: PostCtrlsOpts) { accessibilityLabel={`Reply (${opts.replyCount} ${ opts.replyCount === 1 ? 'reply' : 'replies' })`} - accessibilityHint="reply composer"> + accessibilityHint="" + hitSlop={opts.big ? HITSLOP_20 : HITSLOP_10}> + accessibilityHint="" + hitSlop={opts.big ? HITSLOP_20 : HITSLOP_10}> {opts.isLiked ? ( + accessibilityHint="" + hitSlop={big ? HITSLOP_20 : HITSLOP_10}>