Skip to content

Commit

Permalink
v4.4.0 build (js, css)
Browse files Browse the repository at this point in the history
  • Loading branch information
andi34 committed Dec 6, 2020
1 parent 950dbc8 commit 7b9942f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"repository": "dimsemenov/PhotoSwipe",
"description": "JavaScript gallery",
"main": "dist/photoswipe.js",
"version": "4.3.0",
"version": "4.4.0",
"keywords": [
"gallery",
"lightbox",
Expand Down
10 changes: 6 additions & 4 deletions dist/photoswipe-ui-default.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* PhotoSwipe Default UI - 4.3.0 - 2020-08-28
* PhotoSwipe Default UI - 4.4.0 - 2020-12-06
* http://photoswipe.com
* Copyright (c) 2020 Dmitry Semenov;
*/
Expand All @@ -26,6 +26,7 @@
var _overlayUIUpdated = false,
_controlsVisible = true,
_fullscrenAPI,
_stopAllAnimations,
_controls,
_captionContainer,
_fakeCaptionContainer,
Expand Down Expand Up @@ -582,11 +583,13 @@
var t = e.target || e.srcElement;
if (
t &&
t.nodeType === 1 &&
t.getAttribute('class') &&
e.type.indexOf('mouse') > -1 &&
(t.getAttribute('class').indexOf('__caption') > 0 || /(SMALL|STRONG|EM)/i.test(t.tagName))
) {
preventObj.prevent = false;
_stopAllAnimations();
}
});

Expand All @@ -605,7 +608,6 @@
if (!_shareModalHidden) {
_toggleShareModal();
}

if (_idleInterval) {
clearInterval(_idleInterval);
}
Expand Down Expand Up @@ -682,9 +684,9 @@
ui.updateIndexIndicator();

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

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

_overlayUIUpdated = true;
Expand Down
2 changes: 1 addition & 1 deletion dist/photoswipe-ui-default.min.js

Large diffs are not rendered by default.

13 changes: 3 additions & 10 deletions dist/photoswipe.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* PhotoSwipe - v4.3.0 - 2020-08-28
* PhotoSwipe - v4.4.0 - 2020-12-06
* http://photoswipe.com
* Copyright (c) 2020 Dmitry Semenov;
*/
Expand Down Expand Up @@ -910,7 +910,7 @@ var publicMethods = {
if (_options.focus) {
// focus causes layout,
// which causes lag during the animation,
// that's why we delay it untill the initial zoom transition ends
// that's why we delay it until the initial zoom transition ends
template.focus();
}

Expand Down Expand Up @@ -2447,14 +2447,7 @@ var _showOrHideTimeout,
thumbBounds = _options.getThumbBoundsFn && _options.getThumbBoundsFn(_currentItemIndex);
}

// Don't animate "out" when picture was dragged vertically
// otherwise use configured in/out duration
var duration;
if ((_verticalDragInitiated || _zoomStarted) && out) {
duration = 0;
} else {
duration = out ? _options.hideAnimationDuration : _options.showAnimationDuration;
}
var duration = out ? _options.hideAnimationDuration : _options.showAnimationDuration;

var onComplete = function () {
_stopAnimation('initialZoom');
Expand Down
2 changes: 1 addition & 1 deletion dist/photoswipe.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "photoswipe",
"version": "4.3.0",
"version": "4.4.0",
"engines": {
"node": ">= 0.8.0"
},
Expand Down
2 changes: 1 addition & 1 deletion photoswipe.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "PhotoSwipe",
"title": "Photoswipe",
"description": "",
"version": "4.3.0",
"version": "4.4.0",
"homepage": "http://photoswipe.com",
"demo": "http://photoswipe.com",
"docs": "http://photoswipe.com",
Expand Down

0 comments on commit 7b9942f

Please sign in to comment.