From 222170e54c049cbefc5069124d3ff37adb7bd47a Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Mon, 24 Feb 2014 12:27:56 +0200 Subject: [PATCH] Removed animation from manual browsing --- galleryscript.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/galleryscript.js b/galleryscript.js index 577c009..987b3ca 100644 --- a/galleryscript.js +++ b/galleryscript.js @@ -964,11 +964,18 @@ function showimage(i) { thumblist(i,i); var dirStr=$('#imagecontainer').data('ID')(imagelist.length-1)) { currentimage=0; } showimage(currentimage); }); + if (dirRight) { var $dirEl=$('#nextTouch'); } else { var $dirEl=$('#prevTouch'); } + $dirEl.css("background-color","rgba(238,238,238,0.5)"); + setTimeout(function(){ + $dirEl.css("background", ""); + }, 100); if (fullscreen) { $('#imagecontainer')[0].scrollIntoView(true);