From 30d2007ecff52dbc8851b35ce6ecb68b0950a111 Mon Sep 17 00:00:00 2001 From: q Date: Sat, 28 Jan 2012 18:12:01 +0200 Subject: [PATCH] fullscreen flipping will scroll the window to right position --- galleryscript.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/galleryscript.js b/galleryscript.js index 33184f5..ccf6b84 100644 --- a/galleryscript.js +++ b/galleryscript.js @@ -468,9 +468,12 @@ function fliporiginals() { function flipfullscreen() { // show thumbrow / not if (fullscreen) - { fullscreen=false; } + { fullscreen=false; + document.getElementById('crumbcontainer').scrollIntoView(true); } else - { fullscreen=true; } + { fullscreen=true; + document.getElementById('imagecontainer').scrollIntoView(true); } + showimage(currentimage); }