mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-20 18:41:46 +00:00
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:
parent
3e3c5fec61
commit
48c5d8a250
15
layout.html
15
layout.html
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user