 
     $(document).on 'mousemove', (e) =>
       if @dragging
-        @$el.offset
+        @el.offset
           top: e.pageY - relY
           left: e.pageX - relX
 

      @tool.start()

  startDrag: (e) =>
    $('body').addClass 'unselectable'
    elWidth = @el.outerWidth()
    elHeight = @el.outerHeight()

    console.log e

  # Helper functions
  getToolCount: =>
    $(".#{@className}").length

  generatePosition: ->
    doc_width = $(document).width()
    doc_height = $(document).height()
