   # terminates dragging
   _cleanup: ->
     @dragStart = []
-
     # remove all listeners
     jbone(document.body).off('.overmove')
     jbone(document.body).off('.overup')
     jbone(document.body).off('.overout')
+
+  # terminates touching
+  _touchCleanup: ->
+    @dragStart = []
+    # remove all listeners
+    jbone(document.body).off('.overtmove')
+    jbone(document.body).off('.overtend')
+    jbone(document.body).off('.overtleave')
+    jbone(document.body).off('.overtcancel')
+
 
   # might be incompatible with some browsers
   _onmousewheel: (e) ->

    jbone(document.body).on 'mouseup.overup', => @_cleanup()
    jbone(document.body).on 'mouseout.overout', (e) => @_onmousewinout(e)

  # checks whether mouse moved out of the window
  # -> terminate dragging
  _onmousewinout: (e) ->

  manageEvents: ->
    events = {}
    events.mousedown = "_onmousedown"
    events.touchstart = "_ontouchstart"

    if @g.config.get "registerMouseClicks"
      events.click = "_onclick"
