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
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    darius shared this idea  ·   ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base