 
     return
 
-  mouseup: (pos) ->
+  mouseup: (pos, t) ->
     if @dropdown_menu?
       if @dropdown_menu.selected >= 0
-        @dropdown_menu.options[@dropdown_menu.selected].action(this)
+        @dropdown_menu.options[@dropdown_menu.selected].action(this, t)
       @dropdown_menu = null
       return
 
     if @selected?
-      if Date.now() - @selected.t < 200
+      if t - @selected.t < 200
         mdx = pos.x - @selected.mx
         mdy = pos.y - @selected.my
         if mdx*mdx+mdy*mdy < 10*10

    return


  mousedown: (pos, idx) ->
    for n in @nodes
      if n.isHit(pos)
        if @merging?

          oy: hit.y
          mx: pos.x # mousedown location
          my: pos.y
          t: t
        return true

    if @isHandleHit(pos, idx)
