diff --git a/layout.html b/layout.html
index 87758f0..ea27773 100755
--- a/layout.html
+++ b/layout.html
@@ -116,10 +116,10 @@ $(document).ready(function(){
function scroll_monitor(){
clearTimeout(t)
- if(touching){
- t = setTimeout(scroll_monitor, TIMEOUT)
- } else {
- log('scrolling done...')
+ if(!touching){
+ t = setTimeout(function(){
+ log('scrolling done...')
+ }, TIMEOUT)
}
}