another experiment.............

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-13 00:03:06 +04:00
parent 146144dcd8
commit b26a83cb45

View File

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