     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"

    @el.setAttribute 'height', @g.zoomer.get "alignmentHeight"
    @el.setAttribute 'width', @g.zoomer.get "alignmentWidth"

    console.log @g.zoomer.get "alignmentWidth"

    @g.zoomer._adjustWidth @el, @model
    @g.zoomer._checkScrolling( @_checkScrolling([@g.zoomer.get('_alignmentScrollLeft'),
    @g.zoomer.get('_alignmentScrollTop')] ),{header: "canvasseq"})


    @color = colorSelector.getColor @g


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