more work on scrolling...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-12 21:37:39 +04:00
parent ac80871bb8
commit 9d17f4ba7a

View File

@ -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()