removed animation for fast slideshows

This commit is contained in:
ville rantanen
2013-07-23 16:22:08 +03:00
parent 502b817b63
commit 8b49ad1276
2 changed files with 7 additions and 3 deletions

View File

@@ -977,7 +977,10 @@ function showimage(i) {
if (i>imagelist.length-1 || i<0) { return; }
thumblist(i,i);
var dirStr=$('#imagecontainer').data('ID')<i ? '-' : '+';
var revDirStr=$('#imagecontainer').data('ID')<i ? '+' : '-';
var revDirStr=dirStr=='-' ? '+' : '-';
var animateOut=(slideshowinterval!=0 && Math.abs(slideshowinterval)<2) ? 0 : 100;
var animateIn=animateOut/2;
$('#imagecontainer').clearQueue();
$('#imagecontainer').stop();
$('#imagecontainer').css('margin-left', '0px');
@@ -985,7 +988,7 @@ function showimage(i) {
$('#imagecontainer').animate({
'marginLeft' : dirStr+"=200px",
'opacity' : "-=1"
},100, function() {
},animateOut, function() {
$('#imagecontainer').css('margin-left', revDirStr+'200px');
showbigimage(i);
preload(i);
@@ -995,7 +998,7 @@ function showimage(i) {
$('#imagecontainer').animate({
'marginLeft' : dirStr+"=200px",
'opacity' : "+=1"
},50);
},animateIn);
});
return;