Skip to content

Commit

Permalink
build: release 1.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Mar 5, 2023
1 parent cad27ea commit 66c43d1
Show file tree
Hide file tree
Showing 12 changed files with 635 additions and 499 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.11.3 (Mar 5, 2023)

- Not actually moving when the `offsetX/Y` is `0` (#585, #588).

## 1.11.2 (Jan 1, 2023)

- Do not close the viewer when dragging the image on the backdrop (#577).
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.11.2
* Viewer.js v1.11.3
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-01-01T10:14:49.638Z
* Date: 2023-03-05T07:01:17.741Z
*/

'use strict';
Expand Down Expand Up @@ -1537,7 +1537,6 @@ var handlers = {
return;
}
event.preventDefault();
this.pointerMoved = true;
if (event.changedTouches) {
forEach(event.changedTouches, function (touch) {
assign(pointers[touch.identifier] || {}, getPointer(touch, true));
Expand Down Expand Up @@ -2880,7 +2879,10 @@ var others = {
switch (this.action) {
// Move the current image
case ACTION_MOVE:
this.move(offsetX, offsetY, event);
if (offsetX !== 0 || offsetY !== 0) {
this.pointerMoved = true;
this.move(offsetX, offsetY, event);
}
break;

// Zoom the current image
Expand Down
4 changes: 2 additions & 2 deletions dist/viewer.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer.js v1.11.2
* Viewer.js v1.11.3
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-01-01T10:14:47.694Z
* Date: 2023-03-05T07:01:15.525Z
*/

.viewer-zoom-in::before, .viewer-zoom-out::before, .viewer-one-to-one::before, .viewer-reset::before, .viewer-prev::before, .viewer-play::before, .viewer-next::before, .viewer-rotate-left::before, .viewer-rotate-right::before, .viewer-flip-horizontal::before, .viewer-flip-vertical::before, .viewer-fullscreen::before, .viewer-fullscreen-exit::before, .viewer-close::before {
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.11.2
* Viewer.js v1.11.3
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-01-01T10:14:49.638Z
* Date: 2023-03-05T07:01:17.741Z
*/

function ownKeys(object, enumerableOnly) {
Expand Down Expand Up @@ -1535,7 +1535,6 @@ var handlers = {
return;
}
event.preventDefault();
this.pointerMoved = true;
if (event.changedTouches) {
forEach(event.changedTouches, function (touch) {
assign(pointers[touch.identifier] || {}, getPointer(touch, true));
Expand Down Expand Up @@ -2878,7 +2877,10 @@ var others = {
switch (this.action) {
// Move the current image
case ACTION_MOVE:
this.move(offsetX, offsetY, event);
if (offsetX !== 0 || offsetY !== 0) {
this.pointerMoved = true;
this.move(offsetX, offsetY, event);
}
break;

// Zoom the current image
Expand Down
10 changes: 6 additions & 4 deletions dist/viewer.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer.js v1.11.2
* Viewer.js v1.11.3
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-01-01T10:14:49.638Z
* Date: 2023-03-05T07:01:17.741Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -1541,7 +1541,6 @@
return;
}
event.preventDefault();
this.pointerMoved = true;
if (event.changedTouches) {
forEach(event.changedTouches, function (touch) {
assign(pointers[touch.identifier] || {}, getPointer(touch, true));
Expand Down Expand Up @@ -2884,7 +2883,10 @@
switch (this.action) {
// Move the current image
case ACTION_MOVE:
this.move(offsetX, offsetY, event);
if (offsetX !== 0 || offsetY !== 0) {
this.pointerMoved = true;
this.move(offsetX, offsetY, event);
}
break;

// Zoom the current image
Expand Down
4 changes: 2 additions & 2 deletions dist/viewer.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/viewer.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/css/dist/viewer.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer.js v1.11.2
* Viewer.js v1.11.3
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-01-01T10:14:47.694Z
* Date: 2023-03-05T07:01:15.525Z
*/

.viewer-zoom-in::before, .viewer-zoom-out::before, .viewer-one-to-one::before, .viewer-reset::before, .viewer-prev::before, .viewer-play::before, .viewer-next::before, .viewer-rotate-left::before, .viewer-rotate-right::before, .viewer-flip-horizontal::before, .viewer-flip-vertical::before, .viewer-fullscreen::before, .viewer-fullscreen-exit::before, .viewer-close::before {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="container">
<div class="row">
<div class="col-md">
<h1>Viewer.js <small class="h6">v1.11.2</small></h1>
<h1>Viewer.js <small class="h6">v1.11.3</small></h1>
<p class="lead">JavaScript image viewer.</p>
</div>
<div class="col-md">
Expand Down
10 changes: 6 additions & 4 deletions docs/js/viewer.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Viewer.js v1.11.2
* Viewer.js v1.11.3
* https://fengyuanchen.github.io/viewerjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2023-01-01T10:14:49.638Z
* Date: 2023-03-05T07:01:17.741Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -1541,7 +1541,6 @@
return;
}
event.preventDefault();
this.pointerMoved = true;
if (event.changedTouches) {
forEach(event.changedTouches, function (touch) {
assign(pointers[touch.identifier] || {}, getPointer(touch, true));
Expand Down Expand Up @@ -2884,7 +2883,10 @@
switch (this.action) {
// Move the current image
case ACTION_MOVE:
this.move(offsetX, offsetY, event);
if (offsetX !== 0 || offsetY !== 0) {
this.pointerMoved = true;
this.move(offsetX, offsetY, event);
}
break;

// Zoom the current image
Expand Down
Loading

0 comments on commit 66c43d1

Please sign in to comment.