mirror of
https://github.com/flynx/PortableMag.git
synced 2025-11-01 20:40:20 +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)}))
|
||||
|
||||
var t = null
|
||||
var scrolling = false
|
||||
$('.viewer')
|
||||
.on('scroll', function(evt){
|
||||
scrolling = true
|
||||
clearTimeout(t)
|
||||
t = setTimeout(function(){
|
||||
//setCurrentPage()
|
||||
}, 200)
|
||||
})
|
||||
.on('mouseup touchend', function(evt){
|
||||
setCurrentPage()
|
||||
//setCurrentPage()
|
||||
scrolling = false
|
||||
})
|
||||
|
||||
/*
|
||||
if(!NAVIGATE_RELATIVE_TO_VISIBLE){
|
||||
$('.viewer').css({overflow: 'hidden'})
|
||||
}
|
||||
*/
|
||||
|
||||
// expand the templates...
|
||||
runMagazineTemplates()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user