                 touch.rel_y = 0
             @touch.touches = event.touches.length
 
-        root_element.addEventListener 'touchend', touch_end, false
-        root_element.addEventListener 'touchcancel', touch_end, false
+        if enable_touch
+            root_element.addEventListener 'touchend', touch_end, false
+            root_element.addEventListener 'touchcancel', touch_end, false
 
         touch_move = (event)=>
             event.preventDefault()

                @touch.touch_events[touch.id] = touch
            @touch.touches = event.touches.length

        root_element.addEventListener 'touchmove', touch_move, false

        mouse = @mouse
        mousedown = (event)->

                touch.touch_target = touch.target = t.target
                @touch.touch_events[touch.id] = touch
            @touch.touches = event.touches.length
        
        if enable_touch
            root_element.addEventListener 'touchstart', touch_start, false

        touch_end = (event)=>
            event.preventDefault()
