-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: [35383] zoomed large image disappears from preview if triple tap on the bottom of the screen #35931
fix: [35383] zoomed large image disappears from preview if triple tap on the bottom of the screen #35931
Conversation
@eVoloshchak Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Reviewer Checklist
Screenshots/VideosAndroid: Native24-02-21-21-22-55_092558.mp4Android: mWeb ChromeScreen.Recording.2024-02-21.at.21.30.34.moviOS: NativeScreen.Recording.2024-02-21.at.21.37.58.moviOS: mWeb SafariScreen.Recording.2024-02-21.at.21.36.01.movMacOS: Chrome / SafariScreen.Recording.2024-02-21.at.21.35.07.movMacOS: DesktopScreen.Recording.2024-02-21.at.21.34.12.mov |
@@ -130,7 +130,7 @@ function MultiGestureCanvas({ | |||
|
|||
if (animated) { | |||
offsetX.value = withSpring(0, SPRING_CONFIG); | |||
offsetY.value = withSpring(0, SPRING_CONFIG); | |||
offsetY.value = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The accepted proposal contained a different fix
offsetY.value = withSpring(0, {...SPRING_CONFIG, duration: 0});
Is there a reason you've decided to use offsetY.value = 0
?
(Just want to understand this better, this does work fine)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @eVoloshchak, my apologies for modifying the approved proposal.
The withSpring(0, {...SPRING_CONFIG, duration: 0}) function is causing a typing error. Given that withSpring is designed for generating animated effects, specifying duration: 0 essentially eliminates the animation entirely.
I've made changes to directly set offsetY.value = 0 instead, which promptly reduces the value to 0 with the same outcome (no animation).
@andreasnw, found this bug is still reproducible when using a different image (https://upload.wikimedia.org/wikipedia/commons/3/3f/Fronalpstock_big.jpg)
Screen.Recording.2024-02-13.at.19.31.28.mov |
hi @eVoloshchak, great catch! to fix those horizontal image cases, we can remove the animation from simulator-screen-recording-iphone-14-2024-02-14-at-102920_QMKmWeC4.mp4 |
cded1ba
to
0691e5d
Compare
Not entirely sure we have the best approach, still testing this, will post a review tomorrow |
@eVoloshchak do you have any updates regarding this pull request? Could you provide additional context explaining why it might not be the optimal approach? Would you like to explore an alternative solution? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests well!
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Hey @andreasnw apparently your commits are not signed, could you go over this section in our contribution guide and then retro sign your commits please? You can try this slack post to retro sign. |
0691e5d
to
0222836
Compare
remove animation from offestX.value to handle horizontal image cases
0222836
to
6cb78bb
Compare
thanks for letting me know, @rlinoz ! i've reviewed the contribution guide and signed my pending pull requests. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/rlinoz in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
Details
Remove offsetY animation, since we only need zoom animation for reset function.
Fixed Issues
$ #35383
PROPOSAL: #35383 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android-recording.mp4
Android: mWeb Chrome
mweb.android.webm
iOS: Native
Simulator.Screen.Recording.-.iPhone.14.-.2024-02-06.at.23.06.20.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.14.-.2024-02-07.at.00.35.49.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-02-06.at.23.51.21.mov
MacOS: Desktop
Screen.Recording.2024-02-07.at.00.11.45.mov