Skip to content

Commit

Permalink
refactor condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Aug 23, 2023
1 parent 9fc4770 commit a9d3d6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function AttachmentViewPdf({file, encryptedSourceUrl, isFocused, isUsedInCarouse
if (isUsedInCarousel) {
const shouldPagerScroll = scale === 1;

attachmentCarouselPagerContext.onPinchGestureChange(scale !== 1);
attachmentCarouselPagerContext.onPinchGestureChange(!shouldPagerScroll);

if (attachmentCarouselPagerContext.shouldPagerScroll.value === shouldPagerScroll) return;

Expand Down

0 comments on commit a9d3d6d

Please sign in to comment.