                 touch.radius_y = 0
                 touch.rel_x = 0
                 touch.rel_y = 0
+            for id,touch of @touch.touch_events when not touch.touching
+                delete @touch.touch_events[id]
+            if event.targetTouches.length == 0
+                @touch.first_touch_event = null
             @touch.touches = event.targetTouches.length
 
         if enable_touch


        touch_end = (event)=>
            event.preventDefault()
            for touch in @touch.touch_events
                touch.touching = 0
            for t in event.targetTouches
                touch = @touch.touch_events[t.identifier]
                touch.touching = true


        @touch =
            #touch events is a list of the captured touch events
            touch_events:{}
            first_touch_event: null
            #number of current touches
            touches:0

