blueimp / Gallery

blueimp Gallery is a touch-enabled, responsive and customizable image & video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers. It features swipe, mouse and keyboard navigation, transition effects, slideshow functionality, fullscreen support and on-demand content loading.
https://blueimp.github.io/Gallery/
Other
3.75k stars 984 forks source link

Question. How to disable "hide controls"? #182

Closed 1st closed 10 years ago

1st commented 10 years ago

I use gallery to open image on full browser window (not full screen). If I press on image - the controls (to previous, to next image) are hides. I don't need this behavior, because if I click on image to hide controls, and after this I will close gallery, and then open gallery again - the controls are hidden. This behavior can confuse user about "ho to with to next image OR code this full browser-screen galley".

Please add next improvements: 1) allow to disable hide controls (close gallery, next image, previous image) 2) when I clicked on image and controls hides, I need to show controls when I open gallery next time

Thanks.

blueimp commented 10 years ago

You can make all controls always visible via CSS:

If you want to keep the controls show/hide toggle but always display them when opening an image, simple make sure the blueimp-gallery-controls class is set on the Gallery widget: https://github.com/blueimp/Gallery#controls

1st commented 10 years ago

Oh no, man. Edit CSS isn't good way. Please add extra property to gallery <div> tag and to JavaScript to set these controls always shown.