Open sumitpaul opened 9 years ago
No wonder users can't figure out what the icon is for until they hover over it. The problem is that there is no standard "Share" icon: http://www.fastcodesign.com/3031872/why-isnt-there-a-standard-share-button.
Simply create custom UI by editing default one, it's specially added as a separate file, so you can fork it.
https://github.com/dimsemenov/PhotoSwipe/blob/master/dist/photoswipe-ui-default.js#L437 (take a look at how zoom or close buttons are added, you can add another buttons the same way)
This is also something I would be interested in (but have no JS skills). In my opinion there should be an option for the social sharing button to always be visible, like on pretty photo. For sure "basic" users don't realize that the small arrow at the top right is meant to do that.
Adding another button like the zoom button is not working, the new button is only displayed on my Windows PC, not on a touch device like my iPad. It is also unclear how to add the new button to the default-skin.png image. Please make it possible to add custom buttons which have there own png image and who work also on touch screens! See also: http://stackoverflow.com/questions/36009717/how-to-add-a-button-to-photoswipe
Is it possible to always show the share icons by default? I've noticed that a lot of people don't realize that the images can be shared.
I tried to do this by altering the CSS, but it seems like the share tooltip is only populated after the share button is clicked.
An alternative approach I can think of is to build my own buttons and updating the share URLs of the buttons each time the image changes, but I'm not sure which event to use. I tried the beforeChange and afterChange events but they don't get triggered when the gallery modal opens.