Repository navigation
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 |
There was a problem hiding this comment.
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.
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? |
|
🧪🧪 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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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