mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
UX: Close image viewer on browser back #1514
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#1514
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @agramner on GitHub (Aug 1, 2022).
Originally assigned to: @lastzero, @heikomat on GitHub.
Is your feature request related to a problem? Please describe.
I mostly use PhotoPrism as PWA on mobile (Chrome Android) and one usage pattern I always do wrong (and annoys me) is:
I do this all the time and I guess it's because the (Samsung) gallery app on my phone closes the image viewer on back button.
Describe the solution you'd like
I think most users would expect the image viewer to close when pressing the back button
Describe alternatives you've considered
Maybe move the close button and/or change the icon to a back arrow
Additional context
Maybe a URL hash part (for example #imageviewer) could be added to the URL when the image viewer is opened
@ark- commented on GitHub (Aug 2, 2022):
Agreed, I swipe backwards on iPhone (equivalent to back on Android) and the same happens to me. Instead I have to swipe down.
Issue #1307 is looking to revamp the photo viewer. So perhaps this should be rolled into that work?
@lastzero commented on GitHub (Aug 2, 2022):
You're welcome to send a pull request while we are on vacation! I think we had history mode turned on but it interfered with the new (faster) scrolling, which is why I've turned it off recently. Handling the events manually instead of using the built-in handler should work. Just didn't have any time for that so far.
@agramner commented on GitHub (Aug 13, 2022):
Ok I see. May try to fix this if I have some time over.
@lastzero commented on GitHub (Aug 13, 2022):
Awesome, thank you! It's probably related to this issue:
See the code I referenced in https://github.com/photoprism/photoprism/issues/2597#issuecomment-1211188162.
@heikomat commented on GitHub (Aug 13, 2022):
@agramner I'm highly interested in fixing history mode, and am the one who implemented the virtualization that was the cause to disable it.
But like you, my time is tight, so I just haven't had the possibility to do so.
I'll probably have some time the coming Friday (19.08.).
If you find the time to implement fixes before I do, please feel free to ask anything you'd like to know about the virtualization. I'm happy to help you out where I can
@agramner commented on GitHub (Aug 13, 2022):
@heikomat Aah ok, nice work with the scroll performance! A really great improvement of a key feature.
To be honest. I probably won't have that much time the coming weeks but if I decide to have a go at this I'll probably have some questions for you 🙂.
@dror3go commented on GitHub (Sep 16, 2022):
Looks good!
@ark- commented on GitHub (Sep 17, 2022):
Working nicely for me too, thank you :)