Skip to content

Commit

Permalink
build: release 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Apr 6, 2019
1 parent 493b7e5 commit de9a4cf
Show file tree
Hide file tree
Showing 12 changed files with 2,550 additions and 1,754 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## next
## 1.3.3 (Apr 6, 2019)

- Fix unexpected modal exiting behavior when the mouse is pressed (#255).
- Abort image downloading when cancel viewing for better performance.

## 1.3.2 (Jan 24, 2019)

Expand Down
10 changes: 6 additions & 4 deletions dist/viewer.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer.js v1.3.2
* Viewer.js v1.3.3
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-24T11:01:33.473Z
* Date: 2019-04-06T14:06:28.301Z
*/

'use strict';
Expand Down Expand Up @@ -1724,9 +1724,9 @@ var methods = {
removeListener(viewer, EVENT_TRANSITION_END, hidden);
}
}
};
}; // Note that the `CLASS_TRANSITION` class will be removed on pointer down (#255)

if (this.viewed) {
if (this.viewed && hasClass(this.image, CLASS_TRANSITION)) {
addListener(this.image, EVENT_TRANSITION_END, hide, {
once: true
});
Expand Down Expand Up @@ -1832,6 +1832,8 @@ var methods = {
this.imageInitializing.abort();
}
} else {
// Cancel download to save bandwidth.
image.src = '';
removeListener(image, EVENT_LOAD, onLoad);

if (this.timeout) {
Expand Down
5 changes: 3 additions & 2 deletions dist/viewer.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer.js v1.3.2
* Viewer.js v1.3.3
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-24T11:01:30.299Z
* Date: 2019-04-06T14:06:24.626Z
*/

.viewer-zoom-in::before,
Expand All @@ -24,6 +24,7 @@
.viewer-close::before {
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GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC');
background-repeat: no-repeat;
background-size: 280px;
color: transparent;
display: block;
font-size: 0;
Expand Down
10 changes: 6 additions & 4 deletions dist/viewer.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer.js v1.3.2
* Viewer.js v1.3.3
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-24T11:01:33.473Z
* Date: 2019-04-06T14:06:28.301Z
*/

function _typeof(obj) {
Expand Down Expand Up @@ -1722,9 +1722,9 @@ var methods = {
removeListener(viewer, EVENT_TRANSITION_END, hidden);
}
}
};
}; // Note that the `CLASS_TRANSITION` class will be removed on pointer down (#255)

if (this.viewed) {
if (this.viewed && hasClass(this.image, CLASS_TRANSITION)) {
addListener(this.image, EVENT_TRANSITION_END, hide, {
once: true
});
Expand Down Expand Up @@ -1830,6 +1830,8 @@ var methods = {
this.imageInitializing.abort();
}
} else {
// Cancel download to save bandwidth.
image.src = '';
removeListener(image, EVENT_LOAD, onLoad);

if (this.timeout) {
Expand Down
16 changes: 9 additions & 7 deletions dist/viewer.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*!
* Viewer.js v1.3.2
* Viewer.js v1.3.3
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-24T11:01:33.473Z
* Date: 2019-04-06T14:06:28.301Z
*/

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Viewer = factory());
}(this, (function () { 'use strict';
(global = global || self, global.Viewer = factory());
}(this, function () { 'use strict';

function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
Expand Down Expand Up @@ -1728,9 +1728,9 @@
removeListener(viewer, EVENT_TRANSITION_END, hidden);
}
}
};
}; // Note that the `CLASS_TRANSITION` class will be removed on pointer down (#255)

if (this.viewed) {
if (this.viewed && hasClass(this.image, CLASS_TRANSITION)) {
addListener(this.image, EVENT_TRANSITION_END, hide, {
once: true
});
Expand Down Expand Up @@ -1836,6 +1836,8 @@
this.imageInitializing.abort();
}
} else {
// Cancel download to save bandwidth.
image.src = '';
removeListener(image, EVENT_LOAD, onLoad);

if (this.timeout) {
Expand Down Expand Up @@ -3017,4 +3019,4 @@

return Viewer;

})));
}));
Loading

0 comments on commit de9a4cf

Please sign in to comment.