Trying to fix undefined error on mobile devices while swiping

pull/104/head
Tobias Reich 10 years ago
parent cdd5abcdd8
commit edb7471b10

@ -60,7 +60,8 @@ photo = {
var delay = 0;
if (album.json&&
if (photo.getID()!==false&&
album.json&&
album.json.content[photo.getID()]&&
album.json.content[photo.getID()].previousPhoto!=="") {
@ -89,7 +90,8 @@ photo = {
var delay = 0;
if (album.json&&
if (photo.getID()!==false&&
album.json&&
album.json.content[photo.getID()]&&
album.json.content[photo.getID()].nextPhoto!=="") {

@ -36,8 +36,6 @@ swipe = {
stop: function(e, left, right) {
console.log('stop with ' + e.x);
if (e.x<=-swipe.tolerance) left(true);
else if (e.x>=swipe.tolerance) right(true);
else if (swipe.obj!==null) {

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save