Quick fix for the touch_ended event. Not ideal but it works.