Allow closing of mobile gallery when clicking outside of image
I've had people complain that on mobile devices they have to click the small "x" button to close the gallery. I personally don't care and I can see why it was developed the way it was (for sloppy fingers) — but is there, or can there be a configurable initialization option for allowing the gallery to be closed clicking outside the image and not directly on the X button?
It works like this out of the box on desktop browsers and not mobile.

2 comments
-
沐小北 commented
有这个属性tapToClose:true
-
Anonymous commented
Sroll up or down can close photoswipe but I prefer a simple click to close it , too