Skip to content

Commit

Permalink
hide share modal when slides change, closes #715
Browse files Browse the repository at this point in the history
  • Loading branch information
dimsemenov committed Jan 15, 2015
1 parent dc695fd commit 6d281d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/ui/photoswipe-ui-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ var PhotoSwipeUI_Default =
e = e || window.event;

if(_options.timeToIdle && _options.mouseUsed && !_isIdle) {
// reset idle timer on click
// reset idle timer
_onIdleMouseMove();
}

Expand Down Expand Up @@ -684,6 +684,10 @@ var PhotoSwipeUI_Default =
_overlayUIUpdated = false;
}

if(!_shareModalHidden) {
_toggleShareModal();
}

_countNumItems();
};

Expand Down

0 comments on commit 6d281d6

Please sign in to comment.