Dmytro Semenov
Dmytro Semenov
You can check the type of a slide via `content.type`. To add a custom content type - add `data-pswp-type` attribute to your link that opens PhotoSwipe. I clarified a bit...
This is an old issue. If someone has time, please review v5 for Trusted Types violations https://github.com/dimsemenov/PhotoSwipe/tree/v5-beta/src and suggest changes.
No support yet. But I reworked a few things, for example, error message and counter indicators no longer use raw HTML strings, but templated text. Feel free to submit a...
It's fixed in v5 recently, might be fixed in earlier versions too if I find a way. iOS15 Safari triggers toolbars on any vertical drag, which triggers resize event. The...
Here is the code for v5 https://gist.github.com/dimsemenov/0b8c255c0d87f2989e8ab876073534ea , you may adjust it for earlier versions.
The best solution I've found so far is in [the gist](https://gist.github.com/dimsemenov/0b8c255c0d87f2989e8ab876073534ea), but it's still far from perfect. It partly uses a technique from here https://pqina.nl/blog/how-to-prevent-scrolling-the-page-on-ios-safari/ If you'll manage to find...
No, it's unlikely that I'll add it in the core, it might break sites. You'll need to add it manually and test it. I might release it as a plugin...
> Tapping on the background doesn't close the lightbox It is by design on devices that have only the touch pointer. Same with arrows. Arrows visibility is controlled from [main...
Nice, thx for sharing. #741
@renet, as the animation runs instantly. It's not possible to execute it when final coordinates are unknown (0,0).