From bb2662886844c8f818d8c90007bd1bd495621367 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 14 Feb 2013 07:02:24 +0400 Subject: [PATCH] taming iscroll... Signed-off-by: Alex A. Naanou --- layout-iscroll.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/layout-iscroll.html b/layout-iscroll.html index e1b9459..4c9dda2 100755 --- a/layout-iscroll.html +++ b/layout-iscroll.html @@ -130,18 +130,25 @@ $(document).ready(function(){ function(k){console.log(k)})) window.myScroll = new iScroll('viewer', { - //snap: true, + vScroll: false, + // XXX we do not actually need this, just a couple fixed zoom levels... + zoom: true, + zoomMin: 0.1, snap: '.page', momentum: false, hScrollbar: false, + chechDOMChanges: true, + /* onScrollEnd: function () { var n = getPageNumber() var page = $($('.page')[n]) $('.current.page').removeClass('current') page.addClass('current') // XXX need to calc the propper offset... - myScroll.scrollToElement(page.offset(), 40) + //myScroll.scrollToElement(page[0], 40) + //myScroll.scrollToElement(page[0], 40) } + */ })