miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.68k stars 299 forks source link

How to simulate mousover on a touch screen device to show caption? #273

Closed acwolff closed 6 years ago

acwolff commented 6 years ago

On a PC you can show the caption by moving the mouse pointer over a thumbnail as you can see in this album: https://andrewolff.jalbum.net/PS_JustifiedGallery/ (try it with the first thumbnail) because I use this parameter: captionSettings: {animationDuration: 800, visibleOpacity: 1.0, nonVisibleOpacity: 0},

However on a mobile device like an iPad, there is no way to use this to show the caption in this album. Is there another way to show the caption on a mobile device?

It would be nice if a long tap did show the caption. As a replacement I use the long tap to show the file name and caption in that album, but I would prefer to see the caption in that case in the same way as I see it on a PC. If there was a showCaption method, I could implement it myself.

acwolff commented 6 years ago

Done, see https://andrewolff.jalbum.net/FancyBoxWeb/