       @canvas_inc_height()
       scroll = true
     if scroll
-      @div.scrollTo {
-        left: group_pos.left - 200
-        top: group_pos.top - 200
-      }
+      @focus( layer, pos )
     group = new fabric.Group([], group_pos)
 
   draw_commit: (sha1)->

        paths.push(new fabric.Line coords, @constant.path_style)
    paths

  destroy: (sha1)->
    # TODO remove sha1's related fabric objects


    setTimeout( @draw.bind(@,sha1,layer,pos),0 )

  # TODO
  # ref_on_commit: (ref)
  # ref_on_ref:    (ref1, ref2)
  add_commit: (commit)->
