I suggest you ...

Captions didn't update if accidentally clicked on pictures [solved]

Comment the lines In photoswipde-ui-default in this method:

ui.update = function() {
// Don't update UI if it's hidden

// the lines commented in this function prevent a bug where the captions wouldn't update if clicked anywhere on the pictures or captions.
// if(_controlsVisible && pswp.currItem) {

ui.updateIndexIndicator();

if(_options.captionEl) {
_options.addCaptionHTMLFn(pswp.currItem, _captionContainer);

_togglePswpClass(_captionContainer, 'caption--empty', !pswp.currItem.title);
}

_overlayUIUpdated = true;

// } else {
// _overlayUIUpdated = false;
// }

if(!_shareModalHidden) {
_toggleShareModal();
}

_countNumItems();
};

3 votes
Vote
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
You have left! (?) (thinking…)
darius shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base