this post was submitted on 05 Jul 2023
3 points (100.0% liked)

wefwef

4213 readers
1 users here now

wefwef is now Voyager! Subscribe to !voyagerapp@lemmy.world.

founded 2 years ago
MODERATORS
 

My smooth brain can't unlearn pressing back to close an image that I've opened. Is it functionally possible for the back behaviour to have a toggle to change it from going to previous page to instead close the image in first instance? Enjoying wef wef so far after coming from rif!

top 2 comments
sorted by: hot top controversial new old
[โ€“] bdonvr@thelemmy.club 0 points 2 years ago (1 children)

This might be hard to do with the way webapps work. But I'm not 100%

[โ€“] beeb@lemm.ee 1 points 2 years ago

You can do it easily by changing part of the url when opening an image which adds an entry in the browser history, and you can do a lot in Javascript using the History API : https://developer.mozilla.org/en-US/docs/Web/API/History_API