mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-24 12:22:03 +00:00
taming iscroll...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6af37f65c1
commit
bb26628868
@ -130,18 +130,25 @@ $(document).ready(function(){
|
|||||||
function(k){console.log(k)}))
|
function(k){console.log(k)}))
|
||||||
|
|
||||||
window.myScroll = new iScroll('viewer', {
|
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',
|
snap: '.page',
|
||||||
momentum: false,
|
momentum: false,
|
||||||
hScrollbar: false,
|
hScrollbar: false,
|
||||||
|
chechDOMChanges: true,
|
||||||
|
/*
|
||||||
onScrollEnd: function () {
|
onScrollEnd: function () {
|
||||||
var n = getPageNumber()
|
var n = getPageNumber()
|
||||||
var page = $($('.page')[n])
|
var page = $($('.page')[n])
|
||||||
$('.current.page').removeClass('current')
|
$('.current.page').removeClass('current')
|
||||||
page.addClass('current')
|
page.addClass('current')
|
||||||
// XXX need to calc the propper offset...
|
// XXX need to calc the propper offset...
|
||||||
myScroll.scrollToElement(page.offset(), 40)
|
//myScroll.scrollToElement(page[0], 40)
|
||||||
|
//myScroll.scrollToElement(page[0], 40)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user