-
-
Notifications
You must be signed in to change notification settings - Fork 152
Mobile Swipe and Hide Image Navigation Button Features #837
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
base: main
Are you sure you want to change the base?
Conversation
|
Actually, IIB has a TikTok-like mode to address interaction issues on mobile. For further optimizations on mobile, I also hope to build upon this. c809e5bc6a4eea63bc06bd531c46db3e.mp4 |
|
Yeah the TikTok mode is pretty good. If horizontal swipe and hide buttons are added to tiktok mode, then that's like changing the entire browser so it's not like tiktok at all. This is why I want to add these features as small addons to the default image preview browsing mode. |
|
Alright, you've convinced me. But in my opinion, there's still a major issue: the lack of interactive feedback. For example, when users swipe, an arrow (left or right) could appear, gradually becoming clearer as the swipe distance increases. This is just one example—you can think of others, or ask Cursor/Claude; they’ll know what to do. |
|
Yeah that's true, just hopping to next image without visual feedback on swipe in progress or success is a bit jarring. I'll probs also add a setting to turn off the side panel entirely, and also a one-tap navigation where if you just tap anywhere on the left or right half of the screen and the image will update in-place without animations. |
|
My recommendation is to avoid major modifications or excessive development of the current image viewing system. The existing functionality was actually born out of demanding requirements - it needs to support viewing and managing thousands of images on a single page while maintaining excellent performance. The development and maintenance costs are already relatively high. Moreover, it wasn't specifically designed for mobile platforms; at best, it's just minimally adapted for mobile use. |
|
I recommend developing based on the TikTok-like interaction mode. You can make modifications to the legacy mode if needed, but ensure your changes deliver a solid user experience while keeping code modifications to a minimum. |
I added some simple mobile browsing features. They're not complete asset rebuilds for mobile browsing.
Users can now swipe to navigate images on mobile. If a preview image is zoomed in, swipe navigation won't execute so zooming in and then swiping to look around an image preview will still work properly.
Added a global setting to disable image navigation buttons. This doesn't only hide the buttons but removes the button entirely, with only keyboard and swipe navigation being left active. The translations for this setting should probably be checked by native speakers.
The commits up to remove desktop click swipe, clean code are the actual code changes. The following commits are just compiled asset updates. Originally also had desktop click and drag image navigation, but it's a pointless feature since keyboard nav is already implemented and removed as it was just a testing feature at that point.
If this change gets accepted, I'll probably also add a part to the repo README about how to set up a comfortable mobile browsing experience. These features were implemented in response to #767