 
   # mian MOUSEMOVE event handler
   mover: (ev) =>
+    console.log 'xy:', ev.clientX, ev.clientY if DBG_PRINT_POS
+#DBG_LOG dx
     @sx.scroll @bx.add ev.clientX if @sx.scrollable
     @sy.scroll @by.add ev.clientY if @sy.scrollable
 

      weight = i/@len * (e.l) # CUSTOMIZE this to interpret previous moves differently
      acc += weight * e.d
      acc_w += weight
    acc / acc_w #returns average derivation: rate of change: px/ms


# Ifce for listener

      DBG_SHOW_FOUND
    else
      DBG_SHOW_FOUND = state
  print_pos:(state)->
    unless state?
      DBG_PRINT_POS
    else
      DBG_PRINT_POS = state
  log_speed:(state)->
    unless state?
      DBG_LOG_SPEED
    else
      DBG_LOG_SPEED = state

l = new Listener()

