-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Attachment - Image does not zoom in when two fingers are used #2499
Comments
Had a look at this today and this is definitely a regression, at least on iOS, on the Android emulator the pinch-zoom didn't work even on an old version without the recent changes. The main issue is that the event/gestureState being passed into the
The reason this was working before was that in the library code, the zoom functionality was happening inside the onPanResponderMove function even after 1 tap, however, with the recent changes the override of onStartShouldSetPanResponder now prevents that logic from being hit. For context, the reason for this change was to enable the swipe event to be passed to the Attachment Modal if the tap event was just one touchpoint or we were zoomed in. I tried a couple of things here to enable the zoom to work consistently but ultimately couldn't retain both behaviors
Some potential solutions, from easiest to more complicated:
cc @marcaaron since you are familiar w/ this feature |
Had another look at this today but didn't find any valid solutions, and it doesn't seem like there's a way to make the PanResponder event more accurate for multi-touch. I also tried using https://github.com/aMarCruz/react-native-photo-view-ex and https://github.com/ascoders/react-native-image-viewer#readme but nothing super helpful in those either. I've pushed this branch with my testing diff, I'll get more eyes on this in #expensify-open-source. |
Issue reproducible during today's KI retests |
2 similar comments
Issue reproducible during today's KI retests |
Issue reproducible during today's KI retests |
Issue reproducible today during KI retests |
2 similar comments
Issue reproducible today during KI retests |
Issue reproducible today during KI retests |
Issue reproducible today during KI retests. |
Issue reproducible during KI retests. |
1 similar comment
Issue reproducible during KI retests. |
Issue reproducible during KI retests |
3 similar comments
Issue reproducible during KI retests |
Issue reproducible during KI retests |
Issue reproducible during KI retests |
Missed this one! PR in review |
Issue reproducible during KI retests |
@Jag96 Issue is reproduced during Regression. screen-20220511-224934.mp4 |
@isagoico, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
The issue is reproducible. Can we reopen this? |
Issue is reproductible on build 1.2.62.0 Screen.Recording.20230130.232854.Chrome.mp4 |
@isagoico, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
Issue is reproduced in build 1.3.47.3 Screen.Recording.20230728.174309.Chrome.mp4 |
I would like to contribute please |
📣 @Astronomy74! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@isagoico, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
Issue is reproduced in build 1.3.83-1 Zoom_New.mp4 |
@isagoico, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
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
Confirm the image zooms in
Actual Result
Image does not zoom in
Action Performed
Platform
iOS ✔️
Android ✔️
mWeb/Chrome ✔️
Workaround:
User can zoom with double tap
Platform:
Where is this issue occurring?
Web
iOS ✔️
Android ✔️
Desktop App
Mobile Web
Version Number: 1.0.27-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Images/Videos
Issue is reproducible in production but it's failing step 5 of this PR #2442 (comment).
Bug5030887_20210420_162938_1_.mp4
Expensify/Expensify Issue URL:
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: