arnowelzel / photoswipe-auto-hide-ui

MIT License
0 stars 0 forks source link

Implement this too for mobile devices #1

Open acwolff opened 6 days ago

acwolff commented 6 days ago

Please implement this function also for mobile devices as is also possible with the FancyBox gallery, see this demo album and the LigthGallery gallery, see this demo album.

arnowelzel commented 4 days ago

How exactly should it be?

In the desktop version, auto hide will only start, when the user moved the mouse. Otherwise the UI will stay visible.

However on mobile devices there is no "mouse movement". The only way to provide this there would be to start auto hide in any case, so the UI will always hide after a few secons, even if users don't want to and they must then tap all the time repeatetly to show the UI again. The current behaviour is also well known - Google Photos in Android works exactly the same - the UI is visible by default and as soon as you tap an image once it will hide and stay hidden until you tap again.

At the moment I'm reluctant to introduce auto hide for mobile devices and break an existing feature this way which would not be expected by most users.

arnowelzel commented 4 days ago

And about your demos - in the first demo the UI hides automatically and when I tap the screen to bring it back, it will also trigger other actions like zooming the image. I find this quite cumbersome. The second demo does not hide the UI on mobile devices at all.