From 071bc4d8c2d1189c80c0c820edad1547c1585109 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 14 Feb 2013 00:24:14 +0400 Subject: [PATCH] more testing... Signed-off-by: Alex A. Naanou --- layout.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layout.html b/layout.html index bf240c0..431aeec 100755 --- a/layout.html +++ b/layout.html @@ -144,7 +144,14 @@ $(document).ready(function(){ // .ScrollTo does notwork... //limit_scroll() if(!touching){ - t = setTimeout(setCurrentPage, 100) + t = setTimeout(function(){ + var n = getPageNumber() + var page = $($('.page')[n]) + $('.current.page').removeClass('current') + page.addClass('current') + // attempt to make it without using .ScrollTo(...) + $('.viewer').scrollLeft(page.position().left) + }, 100) } })