Skip to content

App - Unable to scroll the PDF attachment with 2 pages (pay on 22/6) #3247

Closed

Description

@isagoico

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Expected Result:

User should be able to view the whole document.

Actual Result:

User is unable to scroll the PDF file.

Action Performed:

  1. Launch the app
  2. Log in with any account and select any user
  3. Click on add attachment
  4. Upload a PDF with minimum 2 pages
  5. Click on the PDF preview and scroll pages

Workaround:

No workaround found.

Platform:

Where is this issue occurring?

Web
iOS
Android ✔️
Desktop App
Mobile Web

Version Number: 1.0.58-0

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos:

Bug5093686_Screen_Recording_20210531-135522_Expensifycash.mp4

Expensify/Expensify Issue URL:

Upwork posting

Activity

  1. MelvinBot commented on May 31, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @Gonals (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  2. added and removed on Jun 1, 2021
  3. Gonals commented on Jun 1, 2021

    @Gonals
    Contributor

    Changing to weekly and sending to the pool!

  4. removed their assignment
    on Jun 1, 2021
  5. isagoico commented on Jun 7, 2021

    @isagoico
    Author

    Issue reproducible today during KI retests

  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Jun 7, 2021
  7. MelvinBot commented on Jun 7, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @bfitzexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  8. added and removed on Jun 7, 2021
  9. rdjuric commented on Jun 8, 2021

    @rdjuric
    Contributor

    Proposal

    We use react-native-modal for our Modals. In this library, there's a known issue where using a ScrollView inside a swipeable Modal causes that Modal to ignore the scroll movement (react-native-modal/react-native-modal#236).

    Our PDF component (from react-native-pdf) is a ScrollView. So when we try to use it inside our Modal component we run into the issue mentioned above.

    The workarounds mentioned in that issue involve wrapping the content of our ScrollView inside a TouchableOpacity or a View with a custom lifecycle for the gesture responder. In our case, since the ScrollView is added by a library, this would require a patch to the library.

    I think a better solution would be to make our PDF Modals not swipeable. It's already the case that our PDF Modals can't be closed by swiping (since the swipe movements are captured by the PDF), so making it not swipeable would fix the bug without changing any other behavior.

    A good way to do this would be creating a new MODAL_TYPE in /src/styles/getModalStyles.js, for our PDF Modals. It would be the same as the current one, but without the swipeDirection.

  10. MelvinBot commented on Jun 8, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @iwiznia (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

  11. iwiznia commented on Jun 8, 2021

    @iwiznia
    Contributor

    @rdjuric that proposal sounds good (assuming it actually works 😄 )
    @bfitzexpensify can you hire in upwork?

  12. rdjuric commented on Jun 9, 2021

    @rdjuric
    Contributor

    @iwiznia Cool! I went ahead and made a PR #3487

  13. isagoico commented on Jun 13, 2021

    @isagoico
    Author

    Issue reproducible today during KI retests

  14. bfitzexpensify commented on Jun 15, 2021

    @bfitzexpensify
    Contributor

    Reopening so I remember to pay this out in seven days if there are no regressions.

  15. changed the title [-]App - Unable to scroll the PDF attachment with 2 pages[/-] [+]App - Unable to scroll the PDF attachment with 2 pages (pay on 22/6)[/+] on Jun 15, 2021
  16. bfitzexpensify commented on Jun 23, 2021

    @bfitzexpensify
    Contributor

    Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions