         else
           throw new Error "fireEvent: Couldn't find an event class for event '#{eventName}'."
       ev = doc.createEvent eventClass
+      # All events created as bubbling and cancelable.
       ev.initEvent eventName, true, true
-      # All events created as bubbling and cancelable.
+      # allow detection of synthetic events
       ev.synthetic = true
       ev
-      # allow detection of synthetic events
-    # The second parameter says go ahead with the default action
+    # The second parameter says: go ahead with the default action
     node.dispatchEvent ev, true
   else if node.fireEvent
     # IE-old school style
     event = doc.createEventObject()
     event.synthetic = true
     # allow detection of synthetic events
-    node.fireEvent 'on' + eventName, event
-  else
-    node[eventName]() #node.click() etc.
+    node.fireEvent 'on' + eventName, evo or event
+#   else
+#     node[eventName]? evo #node.click() etc.
 
 # ---
 # generated by js2coffee 2.2.0
 ## /LIB
 
 DBG_SHOW_FOUND = false
+DBG_PRINT_POS = false
+DBG_LOG_SPEED = false
 
 # keeps track of last MAX positions and derivations, to compute overscroll
 class Buf
   MAX = 50 #max_length: idx MAX == 0
   idx: 0
   len: 0
-  arr: [{m:0, d:0, l:1}] #see @add for details
+  arr: [] # @add for details
 
   constructor: (pos) ->
-    @arr[0].p = pos
-    @arr[0].t = new Date
+    @idx = 0
+    @len = 0
+    @arr = [
+      m:0
+      d:0
+      l:1
+      p:pos
+      t: new Date
+    ]
 
   # returns DIFF from last
   # pos of mouse (as obtained from event)

  constructor: (@start) ->
    cur_elem = @start
    while cur_elem
      if Math.abs(@compare cur_elem) > 5 #and elligible cur_elem
        console.log "#{@desc}.found:", cur_elem if DBG_SHOW_FOUND
        @elem = cur_elem
        return

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

