Skip to content

Commit

Permalink
Fix unable to scroll PDF files in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangzinh committed Jun 27, 2023
1 parent c122266 commit d47bb44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/AttachmentView.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ function AttachmentView(props) {
onLoadComplete={() => !loadComplete && setLoadComplete(true)}
/>
);
return props.onPress ? (
return props.onPress && !loadComplete ? (
<PressableWithoutFeedback
onPress={props.onPress}
disabled={loadComplete}
style={containerStyles}
accessibilityRole="imagebutton"
accessibilityLabel={props.file.name || props.translate('attachmentView.unknownFilename')}
Expand Down

0 comments on commit d47bb44

Please sign in to comment.