Moved the touch event listener inside the appropriate view class.