     events.touchstart = "_ontouchstart"
 
     if @g.config.get "registerMouseClicks"
-      events.click = "_onclick"
+      events.dblclick = "_onclick"
     if @g.config.get "registerMouseHover"
       events.mousein = "_onmousein"
       events.mouseout = "_onmouseout"


  _getClickPos: (e) ->
    coords = mouse.getMouseCoords e
    rectWidth = @g.zoomer.get "columnWidth"
    rectHeight = @g.zoomer.get "rowHeight"
    coords[0] += Math.floor(@g.zoomer.get("_alignmentScrollLeft") / rectWidth) * rectWidth
    coords[1] += Math.floor(@g.zoomer.get("_alignmentScrollTop") / rectHeight) * rectHeight
    x = Math.floor(coords[0] / rectWidth )
    y = Math.floor(coords[1] / rectHeight)
    x = Math.max 0,x
    y = Math.max 0,y
    seqId = @model.at(y).get "id"

    jbone(document.body).on 'mousemove.overmove', (e) => @_onmousemove(e)
    jbone(document.body).on 'mouseup.overup', => @_cleanup()
    #jbone(document.body).on 'mouseout.overout', (e) => @_onmousewinout(e)
    e.preventDefault()

  # starts the touch mode
  _ontouchstart: (e) ->
