Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page is skewed when dragging Scan content to the right #29578

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/pages/iou/ReceiptSelector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ function ReceiptSelector({route, transactionID, iou, report}) {

const panResponder = useRef(
PanResponder.create({
onMoveShouldSetPanResponder: () => true,
onPanResponderTerminationRequest: () => false,
}),
).current;
Expand All @@ -181,7 +180,7 @@ function ReceiptSelector({route, transactionID, iou, report}) {
/>
)}
{cameraPermissionState === 'denied' && (
<View style={[styles.flex1, styles.permissionView]}>
<View style={[styles.flex1, styles.permissionView, styles.userSelectNone]}>
<Icon
src={Hand}
width={CONST.RECEIPT.HAND_ICON_WIDTH}
Expand Down Expand Up @@ -267,7 +266,7 @@ function ReceiptSelector({route, transactionID, iou, report}) {
</View>

<View
style={styles.receiptViewTextContainer}
style={[styles.receiptViewTextContainer, styles.userSelectNone]}
// eslint-disable-next-line react/jsx-props-no-spreading
{...panResponder.panHandlers}
>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/iou/ReceiptSelector/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function ReceiptSelector({route, report, iou, transactionID, isInTabNavigator})
return (
<View style={styles.flex1}>
{cameraPermissionStatus !== RESULTS.GRANTED && (
<View style={[styles.cameraView, styles.permissionView]}>
<View style={[styles.cameraView, styles.permissionView, styles.userSelectNone]}>
<Hand
width={CONST.RECEIPT.HAND_ICON_WIDTH}
height={CONST.RECEIPT.HAND_ICON_HEIGHT}
Expand Down
Loading