Skip to content

Commit 2027f95

Browse files
committed
slides fix
1 parent 055ed3d commit 2027f95

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Diff for: abigimage.jquery.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* http://aeqdev.com/tools/js/abigimage/
3-
* v 1.2.6
3+
* v 1.2.7
44
*
55
* Copyright © 2014 Maksim Krylosov <[email protected]>
66
*
@@ -200,6 +200,7 @@
200200
}
201201

202202
img[0].addEventListener('touchstart', function(e) {
203+
if (!opened) return;
203204
if (e.touches.length > 1) {
204205
k = dis(e);
205206
img.css({zIndex: opts.prevBtnBoxCSS.zIndex});
@@ -222,6 +223,7 @@
222223
});
223224

224225
img[0].addEventListener('touchmove', function(e) {
226+
if (!opened) return;
225227
dx = (med(e.touches, 'X') - med(touches, 'X'));
226228
dy = (med(e.touches, 'Y') - med(touches, 'Y'));
227229
x = sx + dx / s;
@@ -255,6 +257,7 @@
255257
img[0].addEventListener('touchcancel', touchend);
256258

257259
function touchend(e) {
260+
if (!opened) return;
258261
var time = (new Date()).getTime() - start;
259262

260263
if (!e.touches.length) {

Diff for: abigimage.jquery.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "abigimage",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"title": "ABigImage - view big versions of images",
55
"author": {
66
"name": "Maksim Krylosov",

Diff for: abigimage.jquery.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ <h1>ABigImage</h1>
7474

7575
<p>ABigImage is jQuery plugin for viewing big versions of images.</p>
7676

77-
<p>Current version: <b>1.2.6</b> (2014-07-23).</p>
77+
<p>Current version: <b>1.2.7</b> (2014-07-24).</p>
7878

7979

8080

8181
<div class="coll">
8282
<ul>
83-
<li><a href="abigimage.jquery.js">abigimage.jquery.js</a> (16.5Kb)</li>
84-
<li><a href="abigimage.jquery.min.js">abigimage.jquery.min.js</a> (7.6Kb)</li>
83+
<li><a href="abigimage.jquery.js">abigimage.jquery.js</a> (16.6Kb)</li>
84+
<li><a href="abigimage.jquery.min.js">abigimage.jquery.min.js</a> (7.7Kb)</li>
8585
<li>Project on <a href="https://github.com/Aequiternus/ABigImage">GitHub</a></li>
8686
</ul>
8787
</div>

0 commit comments

Comments
 (0)