PhotoSwipe icon indicating copy to clipboard operation
PhotoSwipe copied to clipboard

Share and fullscreen buttons are no longer available in version 5.4.3

Open Ferdinandgushcloud opened this issue 1 year ago • 2 comments

Hi All,

Currently, I am considering upgrading from version 4.1.3 to 5.4.3. I have noticed that the current version does not include the share and fullscreen features

<button class="pswp__button pswp__button--close" title="Close (Esc)"></button> <button class="pswp__button pswp__button--share" title="Share"></button> <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button> <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

I have reviewed the documentation, but perhaps I missed some information. I just want to confirm: does this latest version no longer provide the share and fullscreen features, as in version 4.1.3?

Ferdinandgushcloud avatar May 07 '24 11:05 Ferdinandgushcloud

Yes, that's correct. History API was removed as it's not reliable enough (too dependent on existing website routing and SEO/linking issues). And fullscreen feature was removed as it doubles existing behavior (e.g. click to open image and then click again to open it "more"). You can check this though for fullscreen https://photoswipe.com/native-fullscreen-on-open/

dimsemenov avatar May 07 '24 17:05 dimsemenov

For fullscreen support you can also add this plugin: https://github.com/arnowelzel/photoswipe-fullscreen

arnowelzel avatar Nov 11 '24 16:11 arnowelzel