mirror of
https://github.com/flynx/PortableMag.git
synced 2025-12-21 19:11:47 +00:00
another experiment.............
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
146144dcd8
commit
b26a83cb45
15
layout.html
15
layout.html
@ -114,17 +114,13 @@ $(document).ready(function(){
|
||||
var TIMEOUT = 100
|
||||
var t = 0
|
||||
|
||||
function _monitor(){
|
||||
if(!touching){
|
||||
v.trigger('scrollend')
|
||||
clearTimeout(t)
|
||||
} else {
|
||||
log('timed out...')
|
||||
}
|
||||
}
|
||||
function monitor_scroll(){
|
||||
clearTimeout(t)
|
||||
t = setTimeout(_monitor, TIMEOUT)
|
||||
t = setTimeout(function(){
|
||||
if(!touching){
|
||||
v.trigger('scrollend')
|
||||
}
|
||||
}, TIMEOUT)
|
||||
}
|
||||
|
||||
$('.viewer')
|
||||
@ -139,7 +135,6 @@ $(document).ready(function(){
|
||||
.on('touchend mouseup', function(evt){
|
||||
//log('touchend...')
|
||||
touching = false
|
||||
monitor_scroll()
|
||||
})
|
||||
|
||||
.on('scrollend', function(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user