use SendThreadMessage, OnTouchGestureEnd could be called by other thread rather than xbmc main one.