Skip to content

Commit

Permalink
Merge pull request #29578 from ZhenjaHorbach/fix/page-is-skewed-when-…
Browse files Browse the repository at this point in the history
…dragging-scan-content-to-the-right

Page is skewed when dragging Scan content to the right
  • Loading branch information
marcochavezf authored Oct 16, 2023
2 parents 4d77635 + 7d4bdf3 commit f03a107
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
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

0 comments on commit f03a107

Please sign in to comment.