Natural media viewer swiping order#6431
Conversation
|
Thank you for your contribution! Here are a few things to check in the PR to ensure it's reviewed as quickly as possible:
|
|
I wanted some feedback from @bmarty since it seems like he planned to work on a related task, but maybe I should ask @mxandreas or @americanrefugee instead: should we just reverse the order of items in the media viewer, or maybe change it conditionally depending on where this screen is started from?:
Looking at other clients:
|
|
This is a tricky one... I agree that when viewing media from the timeline that right=newer / left=older makes total sense for both platforms. The sticky bit is when viewing the Media Browser on iOS vs. Android.
So my personal opinion is:
Would love to get thoughts from @mxandreas |
|
To clarify, when I say for example "right=newer / left=older" I mean... If viewing an image, the image to the right is newer and the image to the left is older. To see the image to the right you swipe left. To see the image to the left you swipe right. Hopefully that makes sense 😅 |
Why is the ordering different in Android gallery? If we changed that order we'd have straightforward solution exactly like we currently have on iOS. |
Because that's the native pattern on Android in general. To make them match would be a refactoring of the media gallery on Android. I'm not opposed to that, but I'm also not sure what the reaction would be from Android users. In general we try and follow native patterns when possible. |
Ok, if we do not want to change this, then I have no better ideas than what we discussed:
|
|
FWIW I agree with you @mxandreas |
|
So, just to confirm: are we ok with the behaviour change in this PR, reversing the order in both cases? |
jmartinesp
left a comment
There was a problem hiding this comment.
Ok, this implementation was verified by product and design and works fine. Let me merge this into a branch of mine for some minor tweaks (I'd upload it to your forked repo, but I can't 🫤, maybe you need to enable this) and then it can be merged.
ef70b44 to
250e000
Compare
|
Actually, a rebase that fixes the failing screenshot tests would probably be good enough to get it merged. Let's see if it works automatically. |
I have this enabled. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #6431 +/- ##
===========================================
- Coverage 81.14% 81.13% -0.01%
===========================================
Files 2623 2623
Lines 72806 72821 +15
Branches 9418 9428 +10
===========================================
+ Hits 59079 59086 +7
- Misses 10254 10260 +6
- Partials 3473 3475 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Content
Change the swiping order in the media viewer and update tests:
Motivation and context
Fixes #6350
Fixes #4296
Right now, the swiping order in the media viewer is wrong:
The new bevahior in this PR is more natural and a standard behavior in most of the apps.
Screenshots / GIFs
Tests
Tested devices
Checklist