another attempt at taming and controlling the scroll on a tablet failed...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-13 04:27:16 +04:00
parent 3e3c5fec61
commit 48c5d8a250

View File

@ -114,6 +114,7 @@ $(document).ready(function(){
function(k){console.log(k)}))
/*
window.scroll_state = 'none'
window.SCROLL_STOP_THRESHOLD = 3
window.SCROLL_CHECK_INTERVAL = 50
@ -133,21 +134,10 @@ $(document).ready(function(){
}, SCROLL_CHECK_INTERVAL)
window._cur_page = 0
*/
$('.viewer')
/*
.on('scroll', function(){
log('scroll...')
var c = v.scrollLeft()
if(scroll_state == 'kinetic'
&& ((_scroll_offset - c) <= SCROLL_STOP_THRESHOLD
|| _scroll_offset - c >= -SCROLL_STOP_THRESHOLD)){
scroll_state = 'none'
log('none...')
v.trigger('scrollstop')
}
})
*/
.on('mousedown touchstart', function(){
log('touching...')
scroll_state = 'touching'
@ -156,6 +146,7 @@ $(document).ready(function(){
log('kinetic...')
scroll_state = 'kinetic'
})
*/
//if(NAVIGATE_RELATIVE_TO_VISIBLE){