Click Actions
List of options:
imageClickAction- click on image with mouse.tapAction- tap on PhotoSwipe viewport content (excluding buttons).doubleTapAction- double tap on anything. Tap delay is removed if this option is set tofalse.bgClickAction- click on area around image (background), with mouse.
Supported action values
'zoom'- zooms current image (depending on secondary zoom level) (defaultdoubleTapAction).'zoom-or-close'- image will be closed if it can not be zoomed (defaultimageClickAction).'toggle-controls'- toggle visibility of controls (defaulttapAction).'next'- move to the next slide'close'- close the gallery- A Function that may perform any action, for example:
imageClickAction: (releasePoint, e) => {}
