       type = event.type
       if view?.events?[type]
         view.trigger(event.type, view)
-#      console.log 'event', event.type, event.target.$view
       if @started and type == 'mousemove' and @events['mousemove']
+        # console.log 'event', event.type, event.target.$view
         requestTick 0, sender 
         @left = event.pageX
         @top = event.pageY

    name = stylemap[name] or name
    view = elem.$view
    if (view[name] != value and view?.events?[name])
#      console.log('sending style', name, elem.$view._locked) if sendstyle
      view.setAttribute(name, value, true)

    returnval

        pos += spacing + subview[axis]


  mouseEvents = ['click', 'mouseover', 'mouseout', 'mousedown', 'mouseup']
  # singleton that listens for mouse position and holds the most recent left and top coordinates
  class Mouse extends Module
    constructor: () ->
      @docSelector = $(document)
