Skip to content

Commit

Permalink
slides fix
Browse files Browse the repository at this point in the history
  • Loading branch information
makryl committed Jul 23, 2014
1 parent 055ed3d commit 2027f95
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion abigimage.jquery.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* http://aeqdev.com/tools/js/abigimage/
* v 1.2.6
* v 1.2.7
*
* Copyright © 2014 Maksim Krylosov <[email protected]>
*
Expand Down Expand Up @@ -200,6 +200,7 @@
}

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

img[0].addEventListener('touchmove', function(e) {
if (!opened) return;
dx = (med(e.touches, 'X') - med(touches, 'X'));
dy = (med(e.touches, 'Y') - med(touches, 'Y'));
x = sx + dx / s;
Expand Down Expand Up @@ -255,6 +257,7 @@
img[0].addEventListener('touchcancel', touchend);

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

if (!e.touches.length) {
Expand Down
2 changes: 1 addition & 1 deletion abigimage.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "abigimage",
"version": "1.2.6",
"version": "1.2.7",
"title": "ABigImage - view big versions of images",
"author": {
"name": "Maksim Krylosov",
Expand Down
2 changes: 1 addition & 1 deletion abigimage.jquery.min.js

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

6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ <h1>ABigImage</h1>

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

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



<div class="coll">
<ul>
<li><a href="abigimage.jquery.js">abigimage.jquery.js</a> (16.5Kb)</li>
<li><a href="abigimage.jquery.min.js">abigimage.jquery.min.js</a> (7.6Kb)</li>
<li><a href="abigimage.jquery.js">abigimage.jquery.js</a> (16.6Kb)</li>
<li><a href="abigimage.jquery.min.js">abigimage.jquery.min.js</a> (7.7Kb)</li>
<li>Project on <a href="https://github.com/Aequiternus/ABigImage">GitHub</a></li>
</ul>
</div>
Expand Down

0 comments on commit 2027f95

Please sign in to comment.