another attempt to tame the scroll...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-13 04:05:16 +04:00
parent d4eebe7c05
commit 1812b5b91b

View File

@ -133,16 +133,6 @@ $(document).ready(function(){
window._cur_page = 0
$('.viewer')
.on('scroll', function(){
var c = getPageNumber()
if(_cur_page != c && scroll_state == 'touching'){
log('page: '+c)
//setCurrentPage(c)
$('.current.page').removeClass('current')
$($('.page')[c]).addClass('current')
_cur_page = c
}
})
.on('mousedown touchstart', function(){
log('touching...')
scroll_state = 'touching'