Fixing emitting of touch events in UIElement.