           _current_line.dragging(snapped.x, snapped.y)
 
     _mouseup = (e) ->
+      if scope.disabled == true
+        return
       xy = _get_x_y(e)
       if _current_line? && _dragging
         _end_line(xy.x, xy.y)

    'settings' : '='
    'model'    : '='
    'correct'  : '='
  template: 
    """
      <div>
        <div class='header' ng-hide='settings.editing'>
          <a class="btn btn-small" ng-click='cursor()' ng-class="{active: mode=='cursor'}"><i class="icon-arrow-left"></i> Pointer </a>
          <a class="btn btn-small" ng-click="toggleDeleteTool()" ng-class="{active: mode=='deleting'}"><i class="icon-remove"></i> Delete</a>
          <a class="btn btn-small" ng-click="togglePointTool()" ng-class="{active: mode=='pointing'}"><i class="icon-hand-up"></i> Point Tool</a>
          <a class="btn btn-small" ng-click="toggleLineTool()" ng-class="{active: mode=='lining'}"><i class="icon-minus"></i> Line Tool</a>
          <a class="btn btn-small" ng-click="reset()"> Reset</a>
        </div>
        <br />
        <div class="canvas" ng-style="{cursor: (mode|cursor)}" style=""></div>

      point.unmousedown()
      # point.unclick()
      point.mousedown (e) ->
        _mousedown(e)

      point.mouseup (e) ->
        if disabled then return
        if scope.mode == 'lining'
          _mouseup e
        else if scope.mode == 'deleting'
