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

wefwef

4215 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 11 comments
sorted by: hot top controversial new old
[–] rust@lemmy.world 3 points 2 years ago

Tracking issue: https://github.com/aeharding/wefwef/issues/111

There are links there to see what’s going on with solving this.

[–] 70ms 1 points 2 years ago* (last edited 2 years ago) (2 children)

Will swiping down close it for you? That's what I do. You can retrain your muscle memory!

[–] calr0x@sh.itjust.works 4 points 2 years ago

I use swipe up but I only remember that one out of 10 times. The other nine I used the back gesture and then curse out loud.

[–] sauerkraus@lemmy.world 1 points 2 years ago (1 children)

I got stuck in a loop between two images yesterday lmao.

[–] 70ms 2 points 2 years ago

Oh shit. 😂

[–] DrQuint@lemmy.world 1 points 2 years ago (1 children)

I made a thread on this issue before and it had a positive reception and someone opened an issue in the tracker since. It may just be slightly under priority, considering the updates since then all had important features, so let's be patient.

[–] Owljfien@aussie.zone 1 points 2 years ago

Some absolute mad lad(lass?) just commented on the git issue that they're now working on it

[–] bdonvr@thelemmy.club 0 points 2 years ago (3 children)

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

[–] tentphone@lemmy.fmhy.ml 4 points 2 years ago

It is possible in modern browsers. You can add a url hash when opening the image viewer and add a listener to the window.onhashchange event to close the viewer. I believe there's a jQuery polyfill as well.

[–] Owljfien@aussie.zone 2 points 2 years ago

Yeah I was worried that might be the case

[–] 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