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

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-13 01:00:37 +04:00
parent 9283db38b7
commit 437047fe4a

View File

@ -111,15 +111,15 @@ $(document).ready(function(){
var v = $('.viewer')
var TIMEOUT = 100
var window.touching = false
var window.t = 0
window.touching = false
window.t = 0
function monitor_scroll(){
clearTimeout(window.t)
window.t = setTimeout(function(){
if(!window.touching){
//if(!window.touching){
v.trigger('scrollend')
}
//}
}, TIMEOUT)
}