3

On mobile I can tap once. Maybe something like shortcut? I'm trying add

ui.hideControls();

in photoswipe-ui-default.js, but there is no "onKeyDown" event.

Hajle
  • 31
  • 1

1 Answers1

0
var gallery = new PhotoSwipe(...
gallery.init();
...


// set bottom gap to 0 (default is 'auto')
gallery.options.barsSize.bottom = 0;
// add class to root element of PhotoSwipe
gallery.framework.addClass( gallery.template, 'pswp__hidden-caption');
// force size update
gallery.updateSize(true);

.pswp__hidden-caption .pswp__caption {
    display:none;
}
Dmitry Semenov
  • 4,566
  • 2
  • 36
  • 39