mirror of
https://github.com/flynx/PortableMag.git
synced 2026-01-08 19:51:35 +00:00
more work on scrolling...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ac80871bb8
commit
9d17f4ba7a
14
layout.html
14
layout.html
@ -86,14 +86,26 @@ $(document).ready(function(){
|
|||||||
},
|
},
|
||||||
function(k){console.log(k)}))
|
function(k){console.log(k)}))
|
||||||
|
|
||||||
|
var t = null
|
||||||
|
var scrolling = false
|
||||||
$('.viewer')
|
$('.viewer')
|
||||||
|
.on('scroll', function(evt){
|
||||||
|
scrolling = true
|
||||||
|
clearTimeout(t)
|
||||||
|
t = setTimeout(function(){
|
||||||
|
//setCurrentPage()
|
||||||
|
}, 200)
|
||||||
|
})
|
||||||
.on('mouseup touchend', function(evt){
|
.on('mouseup touchend', function(evt){
|
||||||
setCurrentPage()
|
//setCurrentPage()
|
||||||
|
scrolling = false
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/*
|
||||||
if(!NAVIGATE_RELATIVE_TO_VISIBLE){
|
if(!NAVIGATE_RELATIVE_TO_VISIBLE){
|
||||||
$('.viewer').css({overflow: 'hidden'})
|
$('.viewer').css({overflow: 'hidden'})
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// expand the templates...
|
// expand the templates...
|
||||||
runMagazineTemplates()
|
runMagazineTemplates()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user