       docker.check_resize_interval = setInterval docker.onCheckStickyResize, 500
 
       docker.listening_to_scroll_events = true
+
+      # Recompute layout if we've seen a scroll in past X ms
+      docker.interval = setInterval -> 
+        if docker.user_scrolled
+          docker.user_scrolled = false
+          docker.onScroll()
+      , 100 
 
   unregister : (key) -> 
     delete docker.registry[key]


    if !docker.listening_to_scroll_events
      
      $(window).on "scroll.docker", docker.onScroll
      $(window).on "resize.docker", docker.onResize

      # If the height of a docked component changes, we need to recalculate

# they know how to render. 

# For console output: 
debug = false

docker =

